pluck-keys
v0.0.4
Published
pick keys of object
Downloads
2,661
Readme
pluck-keys
pick keys of object
Installation
// component
$ component install karlbohlmark/pluck-keys
// npm
$ npm install pluck-keys
API
pluckKeys = require('pluck-keys')
var user = {
email: "[email protected]",
firstname: "Azealia",
lastname: "Banks",
password: "yungrapunxel"
}
var nameProps = pluckKeys(['firstname', 'lastname'], user) // { firstname: "Azealia", lastname: "Banks" }
License
MIT