SyntaxFix
Write A Post
Hire A Developer
Questions
You can use slice with no arguments to copy an array:
var foo, bar; foo = [3,1,2]; bar = foo.slice().sort();