deep clone object javascript
snippet in javascript

deep clone object javascript

user9891

JSON.parse(JSON.stringify(object))

how to make a deep copy in javascript

user7082

JSON.parse(JSON.stringify(o))