Skip to content

Instantly share code, notes, and snippets.

@Vanlalhriata
Created January 27, 2015 14:38
Show Gist options
  • Save Vanlalhriata/f22ed145684eea23e4f7 to your computer and use it in GitHub Desktop.
Save Vanlalhriata/f22ed145684eea23e4f7 to your computer and use it in GitHub Desktop.
Deep copy an object in JavaScript
newCopy = jQuery.extend(true, {}, originalObject);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment