I have a series of mutations to make on my Immutable.js map.
At what point should I prefer using
withMutations rather than creating intermediate immutable maps?
From the Immutable.js docs:
If you need to apply a series of mutations to produce a new immutable
Map, withMutations() creates a temporary mutable copy of the Map which
can apply mutations in a highly performant manner. In fact, this is
exactly how complex mutations like merge are done.
But, where is the line? If I need to make two mutations should I use