Skip to content
This repository has been archived by the owner on Oct 9, 2020. It is now read-only.

Feature List

Sven Fehler edited this page Sep 24, 2019 · 25 revisions

« Home 🏠

This is a list of features that JSLib offers:

Type Name Description Return Type Since Version
Function jsl.isEmpty() Checks if a variable is empty Boolean 1.4.0
Function jsl.isArrayEmpty() Checks if an array is empty Boolean 1.5.0
Function jsl.error() Sends an error message to the console, optionally to a file and/or exits the process void 1.5.0
Function jsl.allEqual() Tests whether or not all items of an array are equal Boolean 1.5.0
Function jsl.softShutdown() Executes a function before process shutdown void 1.5.0
Function jsl.noShudown() Prevents the process from being exited void 1.5.0
Function jsl.yesShutdown() Allows the process to be exited if previously prevented by jsl.noShutdown() void 1.6.0
Function jsl.readableArray() Converts an array to a better readable one Array 1.7.0
Function jsl.mapRange() Transforms a value to a different numerical range Number 1.8.0
Function jsl.unused() Indicates an unused variable to a linter void 1.8.0
Function jsl.replaceAt() Replaces a character in a string with a different string String 1.8.0
Function jsl.randRange() Generates highly randomized numbers from a set numerical range Number 1.5.0
Function jsl.randomizeArray() Randomizes all items in an array Array 1.8.0
Function jsl.seededRNG.generateSeededNumbers() Generates a set of random numbers based on a seed (same seed = same numbers) Object 1.8.0
Function jsl.seededRNG.generateRandomSeed() Generates a random seed to be used in generateSeededNumbers() Number 1.8.0
Function jsl.seededRNG.validateSeed() Checks if a seed is valid Boolean 1.8.0
Function jsl.foo() foo foo 1.
Function jsl.foo() foo foo 1.
Function jsl.foo() foo foo 1.
Function jsl.foo() foo foo 1.
Function jsl.foo() foo foo 1.
net:
Function jsl.foo() foo foo 1.
Function jsl.foo() foo foo 1.
fs:
Function jsl.foo() foo foo 1.
Function jsl.foo() foo foo 1.
Function jsl.foo() foo foo 1.
classes:
Class jsl.foo foo - 1.
Method jsl.foo.bar() foo foo 1.
Class jsl.foo foo - 1.
Method jsl.foo.bar() foo foo 1.
objects:
Object jsl.foo foo Object 1.
Object jsl.foo foo Object 1.
Clone this wiki locally