Reference · Kanji stroke counts
strokesOffunction
The strokes in a kanji, or null for a character the index does not hold.
Import it
import { strokesOf } from "@johnmorrisdotca/bushu/strokes";
Definition
function strokesOf(kanji: string): number | null
Parameters
| Name | Type | Description |
|---|---|---|
kanji | string | The kanji to look up, or the supplied kanji list where the signature requires an array. |
Returns
number | null
The native kanji stroke count, or null when the character is absent from the index.
Examples
import { strokesOf } from "@johnmorrisdotca/bushu/strokes";
console.log(strokesOf("海"));9What it prints (run when this page was built)