News for hackers. Stuff that matters.
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.
Re:Copying objects in JavaScript by benvan on Tuesday November 13, 2018 @04:06PM (#18444904)
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

Re:Copying objects in JavaScript by realharo on Tuesday November 13, 2018 @07:17PM (#18446156)
Having to specify the path using an array of strings would be an instant dealbreaker for me. It messes with all tooling and is bad for readability.