DEV Community

Discussion on: How to make a real copy of a JavaScript Array with Objects (without a reference)

Collapse
 
weirdmayo profile image
Daniel Mayovsky

I had to use this thing to create a copy of the array with objects, but objects would be stripped of like 12 unnecessary keys before they are parsed by my other functions. Using it for filtering the array, that is considerably large. This does the job well so far.