DEV Community

Discussion on: Best way to copy an object in JavaScript?

Collapse
 
bgadrian profile image
Adrian B.G.

I'm all in for vanilla JS but to a point, I would suggest copy the function from Lodash or jQuery. Use the code that was written and tested over the years, circular references can be a pain in the ..code.