Re:A Modern JavaScript Tutorial
by derivagral on Tuesday December 08, 2020 @10:20AM
(#25346288)
In addition to the cloning stuff, I've seen use of an immutables library [0] to make this stuff a little more explicit and simple. Not sure if that's still fashionable though.
[0] e.g. https://immutable-js.github.io/immutable-js/