Returns a two-dimensional array according to grid size.
grid
const a = Grids.toArray({ rows: 3, cols: 2 });Yields:[ [_,_] ][ [_,_] ][ [_,_] ] Copy
const a = Grids.toArray({ rows: 3, cols: 2 });Yields:[ [_,_] ][ [_,_] ][ [_,_] ]
initialValue can be provided to set the value for all cells.
initialValue
Grid
Optional
Initial value
Returns a two-dimensional array according to
grid
size.initialValue
can be provided to set the value for all cells.