Module ringo/utils/objects
Adds utility functions for working with JavaScript Objects
clone (object, cloned, recursive)
copy the properties of an object into a new object
Parameters
Object | object | the object to clone |
Object | cloned | optional clone object |
boolean | recursive | pass true to create a deep clone. Otherwise a shallow clone is created. |
Returns
Object | the clone 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 |