Re:Copying objects in JavaScript
by realharo on Tuesday November 13, 2018 @01:10PM
(#18443198)
I would recommend immer (https://github.com/mweststrate/immer) instead of ImmutableJS. You can work with regular JS objects, plus it plays much nicer with TypeScript.
[ Parent
| on HN ]
I wrote a tiny library called fn-update for this that does composable functional updates (https://github.com/benvan/fn-update).
Personally, I prefer not having to mutate data, even wrapped in a produce method