mixin-object
Extend the properties from any number of objects onto the first object. Pass an empty object as the first arg to create a new object.
Install
Install with npm:
npm i mixin-object --save-dev
Run tests
npm test
Usage
var mixin = require('mixin-object');
var obj = {c: 'c'};
var foo = mixin({a: 'a'}, {b: 'b'});
console.log(foo);
console.log(obj);
mixin({}, {a: 'a'}, {b: 'b'});
Author
Jon Schlinkert
Other javascript/node.js utils
Other projects that I maintain:
License
Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license
This file was generated by verb-cli on October 01, 2014.