Reference · Number-puzzle engines
isKazuLevelfunction
Whether a value is one of the three levels.
Import it
import { isKazuLevel } from "@johnmorrisdotca/kazu";
Definition
function isKazuLevel(value: unknown): value is KazuLevel
Parameters
| Name | Type | Description |
|---|---|---|
value | unknown | The value to validate, encode or enter specified by this signature. |
Returns
boolean
Whether a value is one of the three levels.
Examples
import { isKazuLevel } from "@johnmorrisdotca/kazu";
console.log(isKazuLevel("easy"));trueWhat it prints (run when this page was built)