pick-values
Pick an array of values out of an object.
Last updated 5 years ago by phated .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install pick-values 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.1                                ...           latest (5 years ago)

2 Versions

  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 2
Last Day 0
Last Week 1
Last Month 10
Dependencies (0)
None
Dev Dependencies (2)

Copyright 2014 - 2017 © taobao.org |