3 ms·
console.log(JSON.parse(JSON.stringify(object))) is an easy way to log a deep copy, as long as it doesn't have circular properties (happens with some DOM element
by kylebrown 13y ago
console.log(JSON.parse(JSON.stringify(object))) is an easy way to log a deep copy, as long as it doesn't have circular properties (happens with some DOM elements).