Converts an 1D or 2D array of cell coordinates into values

// 1D (ie an array of coordinates)
const cells = Grid.As.cells(grid);
for (const v of Grid.values(grid, cells)) {

}
// 2D (ie an array of rows)
const rows = Grid.As.rows(grid);
for (const v of Grid.values(grid, rows)) {
}
  • Type Parameters

    • T

    Parameters

    Returns Generator<T>

  • Type Parameters

    • T

    Parameters

    Returns Generator<T[]>