deep-mutate-object
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

deep-mutate-object

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

npm i deep-mutate-object pnpm add deep-mutate-object yarn add deep-mutate-object

API

# deepMutate(obj, walkFn) src/deep-mutate-object.ts#L1

    # obj

      any

    # walkFn(key, value, holder)

      # key

        string

      # value

        any

      # holder

        any

      walkFn(key, value, holder)  =>

        tuple

deepMutate(obj, walkFn)  =>

    any

Contributing

Fork or edit and submit a PR.

All contributions are welcome!

License

MIT © 2022 stagas

Readme

Keywords

none

Package Sidebar

Install

npm i deep-mutate-object

Weekly Downloads

45

Version

1.0.1

License

MIT

Unpacked Size

14.2 kB

Total Files

18

Last publish

Collaborators

  • stagas