kanjiForRadicals関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The kanji that hold every one of the chosen radicals, in the order of the first radical's list (the dictionary's own).
Nothing chosen means nothing to show: the whole dictionary is not an answer to a question nobody has asked yet. A radical that is not in the list cannot be satisfied, so the answer is nothing.
インポート
import { kanjiForRadicals } from "@johnmorrisdotca/bushu";
定義
function kanjiForRadicals(radicals: readonly Radical[], chosen: readonly string[]): string[]
引数
| 名前 | 型 | 説明 |
|---|---|---|
radicals | readonly Radical[] | The native radical entries; these inputs are read without mutation. |
chosen | readonly string[] | Chosen RADKFILE keys, interpreted as an intersection of all chosen parts. |
戻り値
string[]
The kanji that hold every one of the chosen radicals, in the order of the first radical's list (the dictionary's own).
例
import { RADKFILE } from "@johnmorrisdotca/bushu/radkfile";
import { kanjiForRadicals } from "@johnmorrisdotca/bushu";
const radicals = RADKFILE.radicals;
console.log(kanjiForRadicals(radicals,["汁","田"]).slice(0,5));[ '演', '浬', '漁', '滝', '薄' ]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。