DEV Community

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

Collapse
 
albertofdzm profile image
Alberto Fernandez Medina

I would use lodash and its assignIn method. I haven't tried yet Object.assign() so I don't know if it copies nested object and references.