withCorrectedStrokes関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The radicals with the two miscounts put right, as new entries in the same order. Hand it to everything that groups by strokes.
インポート
import { withCorrectedStrokes } from "@johnmorrisdotca/bushu";
定義
function withCorrectedStrokes(radicals: readonly Radical[]): Radical[]
引数
| 名前 | 型 | 説明 |
|---|---|---|
radicals | readonly Radical[] | The native radical entries; these inputs are read without mutation. |
戻り値
Radical[]
The radicals with the two miscounts put right, as new entries in the same order. Hand it to everything that groups by strokes.
例
import { withCorrectedStrokes } from "@johnmorrisdotca/bushu";
console.log(withCorrectedStrokes([{radical:"乞",strokes:2,kanji:"乞"}])[0].strokes);3出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。