deep copy object javascript excluding certain names code example
Example 1: deep clone object javascript
JSON.parse(JSON.stringify(object))
Example 2: how to make a deep copy in javascript
JSON.parse(JSON.stringify(o))
JSON.parse(JSON.stringify(object))
JSON.parse(JSON.stringify(o))