merge (original, updates) Object
public
Merge the contents of two objects together into the first object.
Ember.merge({ first: 'Tom' }, { last: 'Dale' }); // { first: 'Tom', last: 'Dale' } var a = { first: 'Yehuda' }; var b = { last: 'Katz' }; Ember.merge(a, b); // a == { first: 'Yehuda', last: 'Katz' }, b == { last: 'Katz' }
Parameters:
-
original
Object
- The object to merge into
-
updates
Object
- The object to copy properties from
Returns:
-
Object
Please login to continue.