Created
January 29, 2016 04:44
-
-
Save chardos/88e166d9763d7d94a846 to your computer and use it in GitHub Desktop.
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 | |
var deepCopy = jQuery.extend(true, {}, arr); | |
//deep copy an array of objects | |
var originalArr = JSON.parse(JSON.stringify(this.state.labels)) //deep copy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment