util-merge
Simple merge
function, acts as the Object.assign
.
Return a new object containing all of the properties of all the supplied objects. The properties from later objects will overwrite those in earlier objects.
Installation
npm install util-merge
Usage
var merge = ;var obj1 = name: 'zhiye' obj2 = blog: 'http://zhy.li' obj3 = email: 'github@zhiye.li' blog: 'http://zhiye.li' ; console;// => { name: 'zhiye', blog: 'http://zhiye.li', email: 'github@zhiye.li' }