Ember.merge()

merge (original, updates) Objectpublic

Defined in packages/ember-metal/lib/merge.js:1

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
doc_EmberJs
2016-11-30 16:51:34
Comments
Leave a Comment

Please login to continue.