{"name":"get-first","description":"Pass an array of object paths (e.g. `a.b.c`) and get the first non-undefined value if the property exists, or null if it does not.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/get-first","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/get-first.git"},"bugs":{"url":"https://github.com/jonschlinkert/get-first/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/get-first/blob/master/LICENSE-MIT"}],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"mocha":"*","should":"^4.1.0","verb":">= 0.2.6"},"keywords":["get","key","array","nested","object","path","paths","prop","first","properties","property","props","segment","util","utilities","utility","utils","value","values"],"dependencies":{"get-value":"^0.3.2","isobject":"^0.2.0"},"_id":"get-first@0.1.0","_shasum":"922f328b9a1f9822226ac19642b22fb13b6c2eb3","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"922f328b9a1f9822226ac19642b22fb13b6c2eb3","tarball":"http://registry-npm.ywwl.com/get-first/download/get-first-0.1.0.tgz","integrity":"sha512-yGtnRS9DHWypuIPMCYOMjvFYzrKebE95GFXfm4UHZjKkqD7TQLCyJJ4wQm8EIZARSe8sbCkofJ9FPArQwcq54g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDqQbT2PwRFNujtz2bBpSnor8iFtEFOwhiDG0tbHuVtUQIgSYyKCk8GeBctStNQKbPnRcHMebd7jkGhFwEh93V/Gb8="}],"size":3089,"noattachment":false,"key":"/get-first/-/get-first-0.1.0.tgz"},"directories":{},"readme":"# get-first [![NPM version](https://img.shields.io/npm/v/get-first.svg)](https://www.npmjs.com/package/get-first)\n\n> Pass an array of object paths (e.g. `a.b.c`) and get the first non-undefined value if the property exists, or null if it does not.\n\n## Install\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm i get-first\n```\n\n## Run tests\n\n```bash\nnpm test\n```\n\n## Usage\n\n```js\nvar getFirst = require('get-first');\n\ngetFirst({a: 'b'}, 'a');\n//=> 'b'\n\ngetFirst({a: 'b'}, ['a']);\n//=> 'b'\n\ngetFirst({a: {b: 'c'}}, 'a.b');\n//=> 'c'\n\ngetFirst({a: {b: 'c'}}, ['a.b']);\n//=> 'c'\n\ngetFirst({a: {b: 'c'}, x: {b: 'd'}}, ['a.b', 'x.b']);\n//=> 'c'\n\ngetFirst({a: {b: 'c'}, x: {b: 'd'}}, ['x.b', 'a.b']);\n//=> 'd'\n\ngetFirst({a: {b: {c: 'd'}}}, ['a.b', 'x.y.z']);\n//=> {c: 'd'}\n\ngetFirst({a: {b: {c: 'd'}, e: 'f'}}, ['a.c', 'a.e']);\n//=> 'f'\n```\n\n## Related\n\n\n## Running tests\nInstall dev dependencies:\n\n```sh\n$ npm 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/get-first/issues/new).\n\n## Author\n**Jon Schlinkert**\n\n+ [github/jonschlinkert](https://github.com/jonschlinkert)\n+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert) \n\n## License\nCopyright © 2016 [Jon Schlinkert](https://github.com/jonschlinkert)\nReleased under the MIT license.\n\n***\n\n_This file was generated by [verb](https://github.com/verbose/verb) on January 18, 2016._\n","publish_time":1415115867688,"_cnpm_publish_time":1415115867688,"dist-tags":{"latest":"0.1.2"}}