{"_id":"pick-from","_rev":"74474","name":"pick-from","description":"Get the value of the first occurrence of `key` from an array of objects.","dist-tags":{"latest":"0.1.0"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T10:24:15.000Z","created":"2015-02-03T00:40:49.391Z","0.1.0":"2015-02-03T00:40:49.391Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/pick-from.git"},"versions":{"0.1.0":{"name":"pick-from","description":"Get the value of the first occurrence of `key` from an array of objects.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/pick-from","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/pick-from.git"},"bugs":{"url":"https://github.com/jonschlinkert/pick-from/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/pick-from/blob/master/LICENSE-MIT"},"files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"mocha":"*","should":"*"},"keywords":[],"dependencies":{"array-slice":"^0.2.2","object.pick":"^1.1.0"},"_id":"pick-from@0.1.0","_shasum":"1e8f4224799f3b77d5cdd52e2dbf8169b51a7a30","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"1e8f4224799f3b77d5cdd52e2dbf8169b51a7a30","size":1313,"noattachment":false,"key":"/pick-from/-/pick-from-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pick-from/download/pick-from-0.1.0.tgz"},"directories":{},"publish_time":1422924049391,"_cnpm_publish_time":1422924049391,"_hasShrinkwrap":false}},"readme":"# pick-from [![NPM version](https://badge.fury.io/js/pick-from.svg)](http://badge.fury.io/js/pick-from)\n\n> Get the value of the first occurrence of `key` from an array of objects.\n\n## Install with [npm](npmjs.org)\n\n```bash\nnpm i pick-from --save\n```\n\n## Usage\n\n```js\nvar pickFrom = require('pick-from');\n\npickFrom('a', [{b: 'c'}, {a: 'd'}])\n//=> 'd'\n```\n\nPass `true` as the last argument to return the first non-null value:\n\n```js\npickFrom('a', [{b: 'c'}, {a: null}, {a: 'foo'}]);\n//=> null\n\npickFrom('a', [{b: 'c'}, {a: null}, {a: 'foo'}], true);\n//=> 'foo'\n```\n\n## Run tests\n\nInstall dev dependencies:\n\n```bash\nnpm i -d && npm test\n```\n\n## Contributing\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/pick-from/issues)\n\n## Author\n\n**Jon Schlinkert**\n \n+ [github/jonschlinkert](https://github.com/jonschlinkert)\n+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert) \n\n## License\nCopyright (c) 2015 Jon Schlinkert  \nReleased under the MIT license\n\n***\n\n_This file was generated by [verb](https://github.com/assemble/verb) on February 02, 2015._\n","_attachments":{},"homepage":"https://github.com/jonschlinkert/pick-from","bugs":{"url":"https://github.com/jonschlinkert/pick-from/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/pick-from/blob/master/LICENSE-MIT"}}