1.0.1 • Published 9 years ago

pick-values v1.0.1

Weekly downloads
1,227
License
MIT
Repository
github
Last release
9 years ago

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