Skip to the content

Bushu部首

Choose the parts you can see in a kanji, intersect their matches, and add a radical picker to your page.

Bushu is the Japanese word 部首 for a kanji radical. About the name

Contents

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

NameTypeDescription
kanjistring

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("海"));
9

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/bushu 1.1.0.