DEV Community

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

Collapse
 
dvddpl profile image
Davide de Paolis

Not in the provided sample, but if you are deep cloning you might want to consider if one of the values is an array and also if the values contained in the array are object themselves