Module: util/helpers

Methods

(inner) clone(obj) → {Object}

Returns a deep clone of obj

Parameters:
Name Type Description
obj Object

the object to clone

Source:
Returns:
Type
Object

(inner) defined(obj) → {boolean}

Returns true if obj is a defined value

Parameters:
Name Type Description
obj Object

the value to test

Source:
Returns:
Type
boolean

(inner) merge(defaults, overrides) → {Object}

Returns a new object combining the two parameters

Parameters:
Name Type Description
defaults Object

The base object

overrides Object

The object to merge from. Where the same property exists in both defaults
and overrides, the values for overrides will be used

Source:
Returns:
Type
Object

(inner) socketName(socket) → {string}

Returns the text used for logging purposes related to this socket

Parameters:
Name Type Description
socket Object

the socket

Source:
Returns:
Type
string