deepcopy javascript code example
Example 1: deep clone object javascript
JSON.parse(JSON.stringify(object))
Example 2: clone javascript object
let clone = Object.assign({}, objToClone);
Example 3: how to make a deep copy in javascript
JSON.parse(JSON.stringify(o))