npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

v-assign

1.0.1 • Public • Published

v-assign

Assign properties of multiple [target] objects to a source object.

Install

npm install v-assign

Example

var assign = require('v-assign');
 
var object = {
  a: 10,
  b: "hello"
};
 
assign(object, {a: 1, z: 100}, {y: 20}); // object = {a: 1, b: "Hello", z: 100, y: 20}
 
// Ignores undefined / null / falsy / non-object arguments.

install

npm i v-assign

Downloadsweekly downloads

8

version

1.0.1

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability