obj-push

0.0.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i obj-push

Weekly Downloads

1

Version

0.0.2

License

MIT

Last publish

Collaborators

  • urucas
  • vrunoa