Variable: numbers
const numbers: object;
Type declaration
compareVersions()
compareVersions: (v1, v2) => -1 | 0 | 1;
Compares two version strings (e.g. "1.2.3").
Parameters
Parameter | Type | Description |
---|---|---|
v1 | any | |
v2 | any |
Returns
-1
| 0
| 1
1 if v1 > v2, -1 if v1 < v2, 0 if equal
isNumber()
isNumber: (n) => boolean;
Checks if a value is a number.
Parameters
Parameter | Type | Description |
---|---|---|
n | any |
Returns
boolean
parseBoolean()
parseBoolean: (string) => boolean;
Parses a string to boolean.
Parameters
Parameter | Type | Description |
---|---|---|
string | any |
Returns
boolean