DEV Community

Discussion on: JS Fundamentals: Object Assignment vs. Primitive Assignment

Collapse
 
caketi profile image
zhao

const b = JSON.parse(JSON.serialize(a));

serialize? maybe stringify