Last active
August 29, 2015 14:07
-
-
Save guillaumepiot/fad1880bd75fd9203b5d to your computer and use it in GitHub Desktop.
Javascript - Array deep copy with jQuery $.extend
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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