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
Personally, I prefer not having to mutate data, even wrapped in a produce method