# object-pick

> Returns a filtered copy of an object with only the specified keys, exactly like `pick` from lo-dash / underscore.

Latest version **0.1.2** (published 2016-02-07) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

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

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2016-02-07 |
| First published | 2014-09-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jon Schlinkert |
| Maintainers | jonschlinkert |
| Keywords | check, is, is-object, isobject, javascript, key, keys, object, pick, plain, prop, properties, property, props, type, type-of, typeof, util, utilities, utility, utils, value |

## Links

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

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 0.1.2 (latest) — 2016-02-07
- 0.1.1 — 2014-10-06
- 0.1.0 — 2014-09-22

## README

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

> Returns a filtered copy of an object with only the specified keys, exactly like `pick` from lo-dash / underscore.

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

```bash
npm i object-pick --save-dev
```

## benchmarks

This is the [fastest implementation](http://jsperf.com/pick-props) I tested. Pull requests welcome!

## Run tests

```bash
npm test
```

## Usage

```js
var pick = require('object-pick');

pick({a: 'a', b: 'b'}, 'a')
//=> {a: 'a'}

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

## Author

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

## License
Copyright (c) 2014 Jon Schlinkert, contributors.  
Released under the MIT license

***

_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on October 05, 2014._

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