# pick-from

> Get the value of the first occurrence of `key` from an array of objects.

Latest version **0.1.0** (published 2015-02-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install pick-from
pnpm add pick-from
yarn add pick-from
bun add pick-from
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2015-02-03 |
| First published | 2015-02-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Jon Schlinkert |
| Maintainers | jonschlinkert |

## Links

- npm: https://www.npmjs.com/package/pick-from
- Repository: https://github.com/jonschlinkert/pick-from
- Issues: https://github.com/jonschlinkert/pick-from/issues
- npm.io page: https://npm.io/package/pick-from

## Dependencies (2)

- [array-slice](https://npm.io/package/array-slice.md) ^0.2.2
- [object.pick](https://npm.io/package/object.pick.md) ^1.1.0

## Recent versions

- 0.1.0 (latest) — 2015-02-03

## README

# pick-from [![NPM version](https://badge.fury.io/js/pick-from.svg)](http://badge.fury.io/js/pick-from)

> Get the value of the first occurrence of `key` from an array of objects.

## Install with [npm](npmjs.org)

```bash
npm i pick-from --save
```

## Usage

```js
var pickFrom = require('pick-from');

pickFrom('a', [{b: 'c'}, {a: 'd'}])
//=> 'd'
```

Pass `true` as the last argument to return the first non-null value:

```js
pickFrom('a', [{b: 'c'}, {a: null}, {a: 'foo'}]);
//=> null

pickFrom('a', [{b: 'c'}, {a: null}, {a: 'foo'}], true);
//=> 'foo'
```

## Run tests

Install dev dependencies:

```bash
npm i -d && npm test
```

## Contributing
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/pick-from/issues)

## Author

**Jon Schlinkert**
 
+ [github/jonschlinkert](https://github.com/jonschlinkert)
+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert) 

## License
Copyright (c) 2015 Jon Schlinkert  
Released under the MIT license

***

_This file was generated by [verb](https://github.com/assemble/verb) on February 02, 2015._

---
_Source: https://npm.io/package/pick-from · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
