DEV Community

Discussion on: How to Deep Clone an Array in JavaScript

Collapse
 
caseycole589 profile image
Casey Cole

this is the best way to deep copy and you should be cloning html element refs as other people said in the comments that is and easy way to get memory leaks