DEV Community

Discussion on: JavaScript Interviews: Create a deep copy of an object

Collapse
 
jankapunkt profile image
Jan Küster

But stringify removes lots of things so you need to write reviver etc. to support instances or constructor refrrences

Collapse
 
garystorey profile image
Gary Storey

This example, and the problem statement, are using a nested data structure; not functions or constructors. For the purposes outlined above this is perfectly valid.