how to make a deep copy in javascript

JavaScript
JSON.parse(JSON.stringify(o))let clone = Object.assign({}, objToClone);
Source

Also in JavaScript: