Closed kpelzel closed 4 years ago
There was a problem with using new Map(<old-map>). I thought this would make a copy of the old map, but it was just referencing it. So now I use cloneDeep from lodash to clone the map before making edits to it.
new Map(<old-map>)
There was a problem with using
new Map(<old-map>)
. I thought this would make a copy of the old map, but it was just referencing it. So now I use cloneDeep from lodash to clone the map before making edits to it.