fill 2D array
// matrix (2D array) filled with 0
Array(3) // [ , , ]
.fill()
.map( _ => Array(3).fill(0) );
Last updated
Was this helpful?
// matrix (2D array) filled with 0
Array(3) // [ , , ]
.fill()
.map( _ => Array(3).fill(0) );
Last updated
Was this helpful?