utils

Methods

(static) does(value) → {Object}

Simple Utility Methods for checking information about a value.

Parameters:
Name Type Description
value Mixed

Could be anything.

Source:
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.

Source:
Returns:
Type
Object

(static) normalizeHeaderName(string)

Normalizes header name to Upper-Camel-Case notation

Parameters:
Name Type Description
string String

Dash delimited header name

Source:

(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
Source:

(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

Source:
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
Source:
Returns:
Type
String