ixfx
    Preparing search index...

    Function lastCellRowwise

    • Returns the last cell of a grid, row-wise

      For uniform grids, this is simply { x: grid.cols - 1, y: grid.rows - 1 }.

      For jagged grids, the last position is the last cell of the last row, in this case { x: 0, y: 3 } (position 8).

      { rows: [2, 3, 3, 1] }
      0 1
      2 3 4
      5 6 7
      8

      See also firstCellColumnwise

      Parameters

      Returns GridCell