0.0.2 • Published 9 years ago
obj-push
Usage
Merge an object with other object keys
npm install --save obj-push
import push from 'obj-push';
Object.prototype.push = function(obj){
return push(this, obj);
};
let foo = {'foo':'bar'};
let bar = {'bar':'foo'};
foo.push(bar);
console.log(foo)
// { foo: 'bar', bar: 'foo' }