Reference · Rules, solvers and generation
blockOffunction
The block a level is in, from 1.
Import it
import { blockOf } from "@johnmorrisdotca/tsunagi";
Definition
function blockOf(level: number): number
Parameters
| Name | Type | Description |
|---|---|---|
level | number | The one-based level number. |
Returns
number
The block a level is in, from 1.
Examples
import { blockOf } from "@johnmorrisdotca/tsunagi";
console.log(blockOf(17));2What it prints (run when this page was built)