Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

pick-values

1.0.1 • Public • Published

pick-values

Travis Build Status

Pick an array of values out of an object.

Usage

var pickValues = require('pick-values');
 
var result = pickValues({ hello: 'world', foo: 'bar' }, ['hello', 'foo']);
//-> ['world', 'bar']

API

pickValues(object, keys)

Takes an object and an array (or single string) of keys. Returns an ordered array of values from each of the specified keys.

License

MIT

install

npm i pick-values

Downloadsweekly downloads

268

version

1.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability