Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript copy 2d array

function copy2DArray(array) {
    return array.map(row => [...row]);
}
 
PREVIOUS NEXT
Tagged: #javascript #copy #array
ADD COMMENT
Topic
Name
2+8 =