# keyarray-set

> set nested properties with key arrays

Latest version **1.0.1** (published 2016-09-10) · MIT license · 0 weekly downloads

## Install

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

## 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.1 |
| Published | 2016-09-10 |
| First published | 2015-04-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| 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-set
- Repository: https://github.com/kemitchell/keyarray-set.js
- Homepage: https://github.com/kemitchell/keyarray-set.js#readme
- Issues: https://github.com/kemitchell/keyarray-set.js/issues
- npm.io page: https://npm.io/package/keyarray-set

## Dependencies (1)

- [keyarray-get](https://npm.io/package/keyarray-get.md) 0.1.x

## Recent versions

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

## README

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

var anObject = {
  a: {
    b: {}
  }
}

assert(set(anObject, ['a', 'b', 'c'], 'new value') === 'new value')

assert(anObject.a.b.hasOwnProperty('c') === true)

assert(anObject.a.b.c === 'new value')

assert.throws(function () {
  set(anObject, ['nonexistent', 'key'], 'another value')
}, TypeError)
```

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