assign (original, args) Object
public
Copy properties from a source object to a target object.
var a = { first: 'Yehuda' }; var b = { last: 'Katz' }; var c = { company: 'Tilde Inc.' }; Ember.assign(a, b, c); // a === { first: 'Yehuda', last: 'Katz', company: 'Tilde Inc.' }, b === { last: 'Katz' }, c === { company: 'Tilde Inc.' }
Parameters:
-
original
Object
- The object to assign into
-
args
Object
- The objects to copy properties from
Returns:
-
Object
Please login to continue.