# deep-mutate-object

> Deep traverse walk and mutate object keys and/or values.

Latest version **1.0.1** (published 2022-07-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install deep-mutate-object
pnpm add deep-mutate-object
yarn add deep-mutate-object
bun add deep-mutate-object
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2022-07-29 |
| First published | 2022-07-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 13.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | stagas |
| Maintainers | stagas |

## Links

- npm: https://www.npmjs.com/package/deep-mutate-object
- Repository: https://git@github.com/stagas/deep-mutate-object
- Homepage: https://github.com/stagas/deep-mutate-object#readme
- Issues: https://github.com/stagas/deep-mutate-object/issues
- npm.io page: https://npm.io/package/deep-mutate-object

## Recent versions

- 1.0.1 (latest) — 2022-07-29
- 1.0.0 — 2022-07-29

## README

<h1>
deep-mutate-object <a href="https://npmjs.org/package/deep-mutate-object"><img src="https://img.shields.io/badge/npm-v1.0.1-F00.svg?colorA=000"/></a> <a href="src"><img src="https://img.shields.io/badge/loc-9-FFF.svg?colorA=000"/></a> <a href="https://cdn.jsdelivr.net/npm/deep-mutate-object@1.0.1/dist/deep-mutate-object.min.js"><img src="https://img.shields.io/badge/brotli-173b-333.svg?colorA=000"/></a> <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-F0B.svg?colorA=000"/></a>
</h1>

<p></p>

Deep traverse walk and mutate object keys and/or values.

<h4>
<table><tr><td title="Triple click to select and copy paste">
<code>npm i deep-mutate-object </code>
</td><td title="Triple click to select and copy paste">
<code>pnpm add deep-mutate-object </code>
</td><td title="Triple click to select and copy paste">
<code>yarn add deep-mutate-object</code>
</td></tr></table>
</h4>

## API

<p>  <details id="deepMutate$1" title="Function" open><summary><span><a href="#deepMutate$1">#</a></span>  <code><strong>deepMutate</strong></code><em>(obj, walkFn)</em>    </summary>  <a href="src/deep-mutate-object.ts#L1">src/deep-mutate-object.ts#L1</a>  <ul>    <p>    <details id="obj$3" title="Parameter" ><summary><span><a href="#obj$3">#</a></span>  <code><strong>obj</strong></code>    </summary>    <ul><p>any</p>        </ul></details><details id="walkFn$4" title="Function" ><summary><span><a href="#walkFn$4">#</a></span>  <code><strong>walkFn</strong></code><em>(key, value, holder)</em>    </summary>    <ul>    <p>    <details id="key$7" title="Parameter" ><summary><span><a href="#key$7">#</a></span>  <code><strong>key</strong></code>    </summary>    <ul><p>string</p>        </ul></details><details id="value$8" title="Parameter" ><summary><span><a href="#value$8">#</a></span>  <code><strong>value</strong></code>    </summary>    <ul><p>any</p>        </ul></details><details id="holder$9" title="Parameter" ><summary><span><a href="#holder$9">#</a></span>  <code><strong>holder</strong></code>    </summary>    <ul><p>any</p>        </ul></details>  <p><strong>walkFn</strong><em>(key, value, holder)</em>  &nbsp;=&gt;  <ul>tuple</ul></p></p>    </ul></details>  <p><strong>deepMutate</strong><em>(obj, walkFn)</em>  &nbsp;=&gt;  <ul>any</ul></p></p>    </ul></details></p>

## Contributing

[Fork](https://github.com/stagas/deep-mutate-object/fork) or [edit](https://github.dev/stagas/deep-mutate-object) and submit a PR.

All contributions are welcome!

## License

<a href="LICENSE">MIT</a> &copy; 2022 [stagas](https://github.com/stagas)

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