Created
November 29, 2011 20:57
-
-
Save kitek/1406473 to your computer and use it in GitHub Desktop.
Copy/clone array in JavaScript
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 tablica = ["ala", "basia", "zosia"]; | |
var nowaTablica = tablica.slice(); | |
console.log(nowaTablica); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment