Method Array.copy
Copy an array
-
Syntax
Array Array.copy()
Return a copy of this array. - Return value A new copy of the array
-
Examples
- To copy any array
// Define array var a = new Array(1,2,3,4); // Output is a new array (1,2,3,4) a.copy();
-
Download
Source
Unless otherwise noted all code in the JSLab Standard Library is licensed as GPLv3. See http://www.gnu.org/licenses/gpl.html for the entire license.
