getLevelfunction
Find a level by stable content ID or its current one-based display number.
Import it
import { getLevel } from "@johnmorrisdotca/houseki/falling-triplets";
Definition
function getLevel(id: string | number): CampaignLevel | undefined
Parameters
| Name | Type | Description |
|---|---|---|
id | string | number | A stable content id, or the one-based display number when numbers are accepted. |
Returns
CampaignLevel | undefined
Find a level by stable content ID or its current one-based display number. Returns undefined when the id or display number is absent.
Examples
import { getLevel } from "@johnmorrisdotca/houseki/falling-triplets";
console.log(getLevel(1)?.id);ft-0a143ccaf6caWhat it prints (run when this page was built)