1.0.1 • Published 9 years ago

v-assign v1.0.1

Weekly downloads
2
License
ISC
Repository
github
Last release
9 years ago

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.