blockRangefunction
A block's first and last level, the last no further than the size has.
Import it
import { blockRange } from "@johnmorrisdotca/suido/levels";
Also exported from: @johnmorrisdotca/suido/levels-info
Definition
function blockRange(block: number, count: number): { first: number; last: number; }
Parameters
| Name | Type | Description |
|---|---|---|
block | number | The zero-based ladder block index, or decoded four-cell block specified by the signature. |
count | number | The total number of levels. |
Returns
{ first: number; last: number; }
A block's first and last level, the last no further than the size has.
Examples
import { blockRange } from "@johnmorrisdotca/suido/levels";
console.log(blockRange(1,256));{ first: 1, last: 16 }What it prints (run when this page was built)