# @ndhoule/pick

> Create a shallow copy of an input object that contains only the specified properties.

Latest version **2.0.0** (published 2016-05-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install @ndhoule/pick
pnpm add @ndhoule/pick
yarn add @ndhoule/pick
bun add @ndhoule/pick
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2016-05-02 |
| First published | 2015-05-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Nathan Houle |
| Maintainers | ndhoule |
| Keywords | component, functional, pick |

## Links

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

## Recent versions

- 2.0.0 (latest) — 2016-05-02
- 1.0.2 — 2015-05-04

## README

# pick [![CI][ci-badge]][ci-link]

Create a shallow copy of an input object that contains only the specified properties.

```sh
$ component install ndhoule/pick
$ npm install @ndhoule/pick
```

## API

### `pick(props : string|string[], object: Object) => Object`

Return a shallow copy of an input `object` containing only a specified list of properties.

```javascript
var person = { name: 'Tim', occupation: 'enchanter', fears: 'rabbits' };

pick('name', person);
//=> { name: 'Tim' }

pick(['name', 'fears'], person);
//=> { name: 'Tim', fears: 'rabbits' }
```

## License

Released under the [MIT license](LICENSE.md).

[ci-link]: https://travis-ci.org/ndhoule/pick
[ci-badge]: https://travis-ci.org/ndhoule/pick.svg?branch=master

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