Created
January 25, 2010 14:12
-
-
Save bytespider/285885 to your computer and use it in GitHub Desktop.
Copy javascript array to new array
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
var array_a = [1,2,3]; | |
var copy_of_array_a = array_a.slice(0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment