Enumerate rows of grid, returning all the cells in the row as an array

for (const row of Grid.rows(shape)) {
// row is an array of Cells.
// [ {x:0, y:0}, {x:1, y:0} ... ]
}
  • Parameters

    Returns Generator<Cell[], void, unknown>