window.Object:8
Add methods to Object
clone
Defined in clone:107
clone:107
Creates a shallow copy of the object.
The shallow copy.
isPlain
target
Defined in isPlain:53
isPlain:53
Check to see if an object is a plain object definition
The target object
If the object is plain
merge
source
Defined in merge:13
merge:13
Merges two (or more) objects, giving the last one precedence
Additional objects to add
var obj1 = { id : 'foo', name : 'Hello!', value : 100 }; var obj2 = { id : 'bar', value : 200 }; Object.merge({}, obj1, obj2); // Returns: { id : 'bar', name : 'Hello!', value : 200 }