DEV Community

Discussion on: What's the best way to deeply clone an object in JavaScript?

Collapse
 
jalal246 profile image
Jalal 🚀
const deeplyCloned = object.assign({}, myObj)