# keyarray-get

> get nested properties with key arrays

Latest version **1.0.0** (published 2016-08-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install keyarray-get
pnpm add keyarray-get
yarn add keyarray-get
bun add keyarray-get
```

## 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 | 2016-08-24 |
| First published | 2015-04-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Kyle E. Mitchell |
| Maintainers | kemitchell |
| Keywords | arrays, deep, keys, nested, objects, predicate, recursive |

## Links

- npm: https://www.npmjs.com/package/keyarray-get
- Repository: https://github.com/kemitchell/keyarray-get.js
- Issues: https://github.com/kemitchell/keyarray-get.js/issues
- npm.io page: https://npm.io/package/keyarray-get

## Recent versions

- 1.0.0 (latest) — 2016-08-24
- 0.1.0 — 2015-04-13

## README

```javascript
var get = require('keyarray-get')
var assert = require('assert')

assert(get({a: 'value'}, ['a']) === 'value')

assert(get({a: {b: 'value'}}, ['a', 'b']) === 'value')

assert(get({a: {b: ['value']}}, ['a', 'b', 0]) === 'value')

assert.throws(function () {
  get({}, null)
}, TypeError)

assert.throws(function () {
  get(null, [0])
}, TypeError)

assert(get({}, ['a']) === undefined)

assert(get({}, ['a'], 'surrogate') === 'surrogate')
```

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