(static) baseType (value) → {string}
Returns the base type of the value.
Parameters:
Name |
Type |
Description |
value |
*
|
Value to check. |
Returns:
|
(static) className (value) → {string}
Returns class name of the value.
Parameters:
Name |
Type |
Description |
value |
*
|
Value to check. |
Returns:
|
(static) escapeRegexpStr (str) → {string}
Escapes the special regular expression characters. Prepares a string for use within a regular expression. Thanks to Mozilla Developer Network.
Parameters:
Name |
Type |
Description |
str |
string
|
Source string. |
Returns:
|
(static) isBoolean (value) → {boolean}
Tests if the value is a type of boolean.
Parameters:
Name |
Type |
Description |
value |
*
|
Value to check. |
Returns:
|
(static) isNumber (value) → {boolean}
Tests if the value is a type of number.
Parameters:
Name |
Type |
Description |
value |
*
|
Value to check. |
Returns:
|
(static) isString (value) → {boolean}
Tests if the value is a type of string.
Parameters:
Name |
Type |
Description |
value |
*
|
Value to check. |
Returns:
|
(static) valueString (value, asClassopt) → {string}
Returns string representation of the value.
Parameters:
Name |
Type |
Attributes |
Description |
value |
*
|
|
Value. |
asClass |
string
|
<optional>
|
If applied, the result string is decorated as if it were a given class. (optional) |
Returns:
|