Reference · Number-puzzle engines
isKazuSeedfunction
Whether a value is a seed this package takes: a whole number from 1 to KAZU_SEED_MOST.
Import it
import { isKazuSeed } from "@johnmorrisdotca/kazu";
Definition
function isKazuSeed(value: unknown): value is number
Parameters
| Name | Type | Description |
|---|---|---|
value | unknown | The value to validate, encode or enter specified by this signature. |
Returns
boolean
Whether a value is a seed this package takes: a whole number from 1 to KAZU_SEED_MOST.
Examples
import { isKazuSeed } from "@johnmorrisdotca/kazu";
console.log(isKazuSeed(42));trueWhat it prints (run when this page was built)