fill 2D array

// matrix (2D array) filled with 0
Array(3)                          // [ , , ]
  .fill()      
  .map( _ => Array(3).fill(0) );

Last updated