Function to encapsulate object mutations.
const state = { a: 1 };mutate(set("a")(2))(state);console.log(state); // { a: 2 }
Curried function with update in context.
update
Update to apply to given target.
Function to encapsulate object mutations.
Example
Returns
Curried function with
update
in context.