Here’s a quick code snippet that’s very handy. This code performs a deep copy of a JS object without leaving any references to the old object. Here’s the gist:
Here’s a quick code snippet that’s very handy. This code performs a deep copy of a JS object without leaving any references to the old object. Here’s the gist: