Skip to the content

Kazu数

Generate checked Sudoku and logic puzzles, read native rules and hints, and draw or embed playable boards.

Kazu is the Japanese word 数 for number. About the name

Contents

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

NameTypeDescription
valueunknown

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"));
true

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/kazu 2.1.0.