DEV Community

Discussion on: Be aware when cloning objects in JavaScript! 👯‍♀️

Collapse
abhidj0090 profile image
abhidj0090

Great article man,

Have faced this issue plenty of times and have ended with different solutions every time :( and i still don't understand why object.assign() doesn't work

Collapse
dailydevtips1 profile image
Chris Bongers Author

Hey,

Yes you would expect by now the Object.assign would be a deepClone, OR that JavaScript by now would have a perfect DeepClone function build in!