beast-mod v1.4.0
BEAST-MOD
What is it?
Beast mod is a node module that allows you to do anything with - it is the beast of all node modules!
Author
Danny O'Sullivan
How to use it?
Install the module
npm install beast-mod
Array
isArray(array)
Verifies that the item passed through is an array.
last(array)
Returns the last element of an array. If Empty, returns undefined.
max(array)
Returns the largest integer inside of an array.
mergeArray(array1, array2)
Merges 2 arrays into 1.
min(array)
Returns the largest integer inside of an array.
Boolean
isBoolean(bool)
Verifies that the item passed through is a boolean.
Function
isFunction(function)
Verifies that the item passed through is a function.
Number
isNumber(num)
Verifies that the item passed through is a function.
randNumber(upperLimit, lowerLimit)
This function generates a random number between a lower and upper limit.
Object
deepClone(object)
This function clones an object.
isObject(isObject)
Verifies that the item passed through is a function.
RegExp
isRegExp(regex)
Verifies that the item passed through is a regular expression.
String
isString(str)
Verifies that the item passed through is a string.
randString(length)
This function generates a random string of a given length. If no length is given, then the length of the string defaults to 16.
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago