Skip to content

Instantly share code, notes, and snippets.

@guillaumepiot
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guillaumepiot/fad1880bd75fd9203b5d to your computer and use it in GitHub Desktop.
Save guillaumepiot/fad1880bd75fd9203b5d to your computer and use it in GitHub Desktop.
Javascript - Array deep copy with jQuery $.extend
# Deep copy the *items* list of objects
items_list = []
for item in items
items_list.push($.extend({}, item))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment