Re:Deep Cloning Objects in JavaScript, the Modern Way
by kevincox on Thursday December 21, 2023 @08:13PM
(#38729638)
The saving grace here is that it destroys classes. I have often seen deep clone and deep equals as a sort of back-door API that then breaks when the implementation of the class does. The fact that this ignores prototypes makes it clear that you should only be using this for data, not "OO Objects".
[ Parent
| on HN ]
There are no comments on this comment yet.