0 points

Fastest way to duplicate an array in JavaScript - slice vs. 'for' loop - Stack Overflow


dashboard

Sun Sep 06 2020 21:03:12 GMT+0000 (UTC)

Posted by @dgaldon #javascript

myArray.slice(0);
content_copy Copy

https://stackoverflow.com/questions/3978492/fastest-way-to-duplicate-an-array-in-javascript-slice-vs-for-loop