obj-push
0.0.2 • Public • Published 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)
Dependencies (0)
Dev Dependencies (2)
Package Sidebar
Install
Weekly Downloads