strokesOf関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The strokes in a kanji, or null for a character the index does not hold.
インポート
import { strokesOf } from "@johnmorrisdotca/bushu/strokes";
定義
function strokesOf(kanji: string): number | null
引数
| 名前 | 型 | 説明 |
|---|---|---|
kanji | string | The kanji to look up, or the supplied kanji list where the signature requires an array. |
戻り値
number | null
The native kanji stroke count, or null when the character is absent from the index.
例
import { strokesOf } from "@johnmorrisdotca/bushu/strokes";
console.log(strokesOf("海"));9出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。