0.0.2 • Published 9 years ago

obj-push v0.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

obj-push Build Status

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' }
0.0.2

9 years ago

0.0.1

9 years ago