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",
      }),
    ),
  });

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.2
    5
    • latest

Version History

Package Sidebar

Install

npm i copy-machine

Weekly Downloads

1

Version

0.2.2

License

MIT

Last publish

Collaborators

  • ericanderson