Snippet of the day: Deep copy JS object.

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:

Leave a Reply

Your email address will not be published. Required fields are marked *