pushp

0.0.1 • Public • Published

pushp

Attaches value to array within an object.

usage

var pp = require('pushp');
 
var obj = { id: 1, collection: [2,3]};
obj.collection = _pp(obj).push('id', 'collection');
#=> { id: 1, collection: [1,2,3]}

install

npm install pushp --save

test

npm test

license

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i pushp

Weekly Downloads

2

Version

0.0.1

License

MIT

Last publish

Collaborators

  • twilson63