Merges the properties from a source object into a destination object.
Advertisement
Learn and Understand NodeJS
Dive deep under the hood of NodeJS. Learn V8, Express, the MEAN stack, core Javascript concepts, and more.
$ npm install utils-merge
var a = { foo: 'bar' }
, b = { bar: 'baz' };
merge(a, b);
// => { foo: 'bar', bar: 'baz' }
Copyright (c) 2013-2017 Jared Hanson <http://jaredhanson.net/>