# deep-pick-by

> Recursively pick an object or an array by given criteria.

Latest version **1.0.0** (published 2020-02-26) · ISC license · 0 weekly downloads

## Install

```sh
npm install deep-pick-by
pnpm add deep-pick-by
yarn add deep-pick-by
bun add deep-pick-by
```

## 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 | 1.0.0 |
| Published | 2020-02-26 |
| First published | 2020-02-26 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 1.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | shuaibird |
| Maintainers | shuaibird |
| Keywords | keys, nested, object, properties, props, recurse, recursively, deep, pick, pickby, lodash |

## Links

- npm: https://www.npmjs.com/package/deep-pick-by
- Repository: https://github.com/shuaibird/deep-pick-by
- Issues: https://github.com/shuaibird/deep-pick-by/issues
- npm.io page: https://npm.io/package/deep-pick-by

## Dependencies (1)

- [lodash](https://npm.io/package/lodash.md) ^4.17.15

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2020-02-26

## README

# deep-pick-by
Recursively pick an object or an array by given criteria.

## Installation
```
npm install deep-pick-by --save
```

## Usage
```javascript
const deepPickBy = require('deep-pick-by');

const collection = {
  a: 0,
  b: 0,
  c: {
    a: 0,
    b: 0,
    c: {
      a: 0,
      b: 0,
    },
  },
};

deepPickBy(collection, (val, key) => key === 'a');
//=> { a: 0, c: { a: 0, c: { a: 0 } } }
```

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