a few immutable.js-like mutation functions for plain objects
Beware of using Ramda.js! It always returns a new object, even if nothing changed!
pnpm install --save @jcoreio/mutate
const { setIn } = require('@jcoreio/mutate')
Works just like setIn
from Immutable.js
but operates on nested JS Objects and Arrays.
const { updateIn } = require('@jcoreio/mutate')
Works just like updateIn
from Immutable.js
but operates on nested JS Objects and Arrays.