4 ms·
> Can anyone describe a compelling use case for "deep cloning" objects in JavaScript Hierarchical data structures, in mindmaps, menu structures, block based no
by jv22222 3y ago
> Can anyone describe a compelling use case for "deep cloning" objects in JavaScript
Hierarchical data structures, in mindmaps, menu structures, block based notes apps, etc.
- niedzielski 3y agoI agree. I had this same problem with a tree UI model. Each node had links to both the children and the parent. Mutating any node in the tree, changes the reference of that node. Mutating the linkage to the updated node cascades to every other node in the tree.