npm

npm’s 2019 JavaScript ecosystem survey analysis is now available!Get your copy here »

util-merge

1.0.0 • Public • Published

util-merge

Build Status NPM Version NPM Downloads

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 = require('util-merge');
var obj1 = { name: 'zhiye' },
    obj2 = { blog: 'http://zhy.li' },
    obj3 = { email: 'github@zhiye.li', blog: 'http://zhiye.li' };
 
console.log(merge(obj1, obj2, obj3));
// => { name: 'zhiye', blog: 'http://zhiye.li', email: 'github@zhiye.li' }

install

npm i util-merge

Downloadsweekly downloads

274

version

1.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability