Methods
(static) does(value) → {Object}
Simple Utility Methods for checking information about a value.
Parameters:
Name | Type | Description |
---|---|---|
value |
Mixed | Could be anything. |
Returns:
- Type
- Object
(static) is(value) → {Object}
Simple Utility Methods for checking information about a value.
Parameters:
Name | Type | Description |
---|---|---|
value |
Mixed | Could be anything. |
Returns:
- Type
- Object
(static) normalizeHeaderName(string)
Normalizes header name to Upper-Camel-Case notation
Parameters:
Name | Type | Description |
---|---|---|
string |
String | Dash delimited header name |
(static) setCharAt(string, index, char)
Replaces the character at the specified index with the specified character given.
Parameters:
Name | Type | Description |
---|---|---|
string |
String | |
index |
Number | |
char |
String |
(static) trim(string) → {String}
Removes whitespace from both ends of a string.
Parameters:
Name | Type | Description |
---|---|---|
string |
String | String to be trimmed of whitespace on both ends |
Returns:
- Type
- String
(static) uid(len) → {String}
Return unique identifier string of random characters of length len
.
utils.uid(10) // "FDaS435D2z"
Parameters:
Name | Type | Description |
---|---|---|
len |
Number |
Returns:
- Type
- String