Methods
-
<static> between(min, max, val)
Value Between
-
Determines if value is in a given range
Parameters:
Name Type Description minnumber The minimum for the range
maxnumber The maximum for the range
valnumber The value to test for between
- Source:
Returns:
True if the value is within the given range,
otherwise False- Type
- boolean
-
<static> getMilliseconds(numOfDigits)
Milliseconds All Time
-
The milliseconds since Jan, 1 1970
Parameters:
Name Type Default Description numOfDigitsnumber 0 Truncates the value from the end of the number
- Source:
Returns:
The milliseconds since Jan, 1 1970 as truncated
- Type
- number
-
<static> getRandomDecimal(min, max, places)
Random Float
-
Generates a random float based on the min/max values
Parameters:
Name Type Default Description minnumber 1 The minimum random value
maxnumber 100 The maximum random value
placesnumber 2 The maximum number of decimal places
- Source:
Returns:
A float within the specified range
- Type
- number
-
<static> getRandomInteger(min, max)
Random Integer
-
Generates a random integer based on the min/max values
Parameters:
Name Type Default Description minnumber 1 The minimum random value
maxnumber 100 The maximum random value
- Source:
Returns:
An integer within the specified range
- Type
- number
-
<static> outputError(error, logOnly)
Error Output
-
Outputs the provided Error object to the console
Parameters:
Name Type Default Description errorError The error to show in the console
logOnlyboolean false Determines if console will write to error or log
- Source: