pluck-key-values

0.0.1 • Public • Published

Pluck key values

Pluck the values of an array of keys from an object (order is preserved)

usage

var pluckKeyValues = require('pluck-key-values');

pluckKeyValues({
	firstName: 'Simon',
	lastName: 'Bells',
	age: 28,
}, [ 'age', 'firstName' ]); // [ 28, 'Simon' ]

License

MIT © Thomas Jensen

Readme

Keywords

Package Sidebar

Install

npm i pluck-key-values

Weekly Downloads

3

Version

0.0.1

License

MIT

Last publish

Collaborators

  • thomas-jensen