copy-machine
TypeScript icon, indicating that this package has built-in type declarations

0.2.2 • Public • Published

Why?

Sometimes you want to deep mutate.

Example

import {update} from "copy-machine";

  state = update(state, {
    posts: update(
      0, update<Post>({
        author: "Eric",
      }),
    ),
  });

Readme

Keywords

none

Package Sidebar

Install

npm i copy-machine

Weekly Downloads

1

Version

0.2.2

License

MIT

Last publish

Collaborators

  • ericanderson