Originally posted at michaelzanggl.com. Subscribe to my newsletter to never miss out on new content.
To understand shallow / deep copying let's ...
For further actions, you may consider blocking this person and/or reporting abuse
I liked the way you transitioned the acronyms example into actual code. Well done!
If anyone is curious, here is a (non-exhaustive) benchmark list of possible Deep Copy implementations and approaches: jsben.ch/2gRXJ
There are definitely other factors to be considered, but it's interesting to see the benchmark.
And of course, everyone can add new tests to that link and generate more complete benchmarks, if one is so inclined.
Thanks for the article!