Function

merge (original, updates) Object public deprecated

Module: @ember/polyfills
import { merge } from '@ember/polyfills';
original
Object
The object to merge into
updates
Object
The object to copy properties from
returns
Object

Merge the contents of two objects together into the first object.

import { merge } from '@ember/polyfills';

merge({ first: 'Tom' }, { last: 'Dale' }); // { first: 'Tom', last: 'Dale' }
var a = { first: 'Yehuda' };
var b = { last: 'Katz' };
merge(a, b); // a == { first: 'Yehuda', last: 'Katz' }, b == { last: 'Katz' }

© 2020 Yehuda Katz, Tom Dale and Ember.js contributors
Licensed under the MIT License.
https://api.emberjs.com/ember/3.25/functions/@ember%2Fpolyfills/merge