v-assign
v1.0.1
Published
Assign properties of multiple [target] objects to a source object.
Downloads
1
Maintainers
Readme
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.