Is the below method a foolproof way of deep copying an object in Javascript i.e. even for very deeply nested objects/arrays ?
let newObj = JSON.parse(JSON.str