Skip to content

Instantly share code, notes, and snippets.

@raspo
Created March 11, 2012 12:22
Show Gist options
  • Save raspo/2016244 to your computer and use it in GitHub Desktop.
Save raspo/2016244 to your computer and use it in GitHub Desktop.
Create a copy of an object with jQuery
var newObject = jQuery.extend(true, {}, oldObject);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment