Fork me on GitHub

Module core/object

Adds useful methods to the JavaScript Object type.

Class Object

Instance Methods

Static Methods


Object.merge (obj...)

Creates a new object as the as the keywise union of the provided objects. Whenever a key exists in a later object that already existed in an earlier object, the according value of the earlier object takes precedence.

Parameters

Object obj... The objects to merge

Object.prototype.clone (clone, recursive)

copy the properties of an object into a new object

Parameters

Object clone the clone object
boolean recursive pass true to create a deep clone. Otherwise a shallow clone is created.

Returns

Object the clone object