rowNumberfunction
Row number counted from the bottom edge, so the bottom row is 1.
Import it
import { rowNumber } from "@johnmorrisdotca/narabe";
Definition
function rowNumber(size: number, row: number): number
Parameters
| Name | Type | Description |
|---|---|---|
size | number | The number of cells on each side of the board. |
row | number | The zero-based row counted from the top. |
Returns
number
Row number counted from the bottom edge, so the bottom row is 1.
Examples
import { rowNumber } from "@johnmorrisdotca/narabe";
console.log(rowNumber(15,7));8What it prints (run when this page was built)