This is what I need to make work in JavaScript: 
[1,2,3,4,5].duplicate(); // [1,2,3,4,5,1,2,3,4,5]
Best practices? Ideas?
This is what I need to make work in JavaScript: 
[1,2,3,4,5].duplicate(); // [1,2,3,4,5,1,2,3,4,5]
Best practices? Ideas?
Use
concat
on the samearray
. It'll duplicate the elements of the array.