DEV Community

loading...

Discussion on: 3 ways to clone in JS

Collapse
ajones_codes profile image
Andrew Jones

One difference is that JSON.stringify will break if your object has circular references - you can use a custom replacer to prevent this stackoverflow.com/questions/116166...