Collection of utility functions relating to types of values.
- Source:
Methods
(inner) isArray(input) → {boolean}
Tests whether an input is an Array
Parameters:
Name | Type | Description |
---|---|---|
input |
* | Input value |
- Source:
Returns:
Whether the input is an Array
- Type
- boolean
(inner) isNull(input) → {boolean}
Tests whether an input is null
Parameters:
Name | Type | Description |
---|---|---|
input |
* | Input value |
- Source:
Returns:
Whether the input is null
- Type
- boolean
(inner) isObject(input) → {boolean}
Tests whether an input is an Object
Parameters:
Name | Type | Description |
---|---|---|
input |
* | Input value |
- Source:
Returns:
Whether the input is an Object
- Type
- boolean
(inner) singleValue(input) → {string}
Gets the Type of a Single Value
Parameters:
Name | Type | Description |
---|---|---|
input |
string | null | number | boolean | Input value |
- Source:
Returns:
Type of input
- Type
- string