DEV Community

Discussion on: Different ways to copy an object in JavaScript

Collapse
 
curiousdev profile image
CuriousDev

I think it can be worth to implement custom functions for cloning, if you are dealing with data records and not every referenced record has to be copied. Sometimes you want to keep references instead.