Global

Methods

# empty() → {boolean}

Parameters:
Type Description
Object The object of which to check if it's empty
Throws:
Will throw a type error if input was not of type Object
Type
TypeError
Returns:
Returns true if the object is empty
Type
boolean

# randomItem() → {*}

Parameters:
Type Description
Array The array to get a random item from
Throws:
Will throw a type error if input was not of type Array
Type
TypeError
Returns:
Returns a random item from a array
Type
*

# randomNumber(Min, Max) → {Number}

Parameters:
Name Type Description
Min Number The minimum amount to return
Max Number The maximum amount to return
Throws:
Will throw a type error if either parameter was not of type Number
Type
TypeError
Returns:
Returns a random number between min and max
Type
Number