pluck-keys

0.0.4 • Public • Published

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: "user@domain.com",
  firstname: "Azealia",
  lastname: "Banks",
  password: "yungrapunxel"
}
 
var nameProps = pluckKeys(['firstname', 'lastname'], user) // { firstname: "Azealia", lastname: "Banks" }

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i pluck-keys

Weekly Downloads

472

Version

0.0.4

License

MIT

Last publish

Collaborators

  • karboh