kanjiIn関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Every kanji in the text, once each, in the order they appear. Kana, punctuation and 々 are not kanji.
インポート
import { kanjiIn } from "@johnmorrisdotca/hikidashi/difficulty";
ほかのエクスポート元: @johnmorrisdotca/hikidashi
定義
function kanjiIn(text: string): string[]
引数
| 名前 | 型 | 説明 |
|---|---|---|
text | string | Any text. |
戻り値
string[]
The distinct kanji (CJK Unified Ideographs and Extension A), first appearance first; an empty list when there are none.
例
import { kanjiIn } from "@johnmorrisdotca/hikidashi/difficulty";
console.log(kanjiIn("毎日、日本語を勉強する。"), kanjiIn("ひらがな"));[ '毎', '日', '本', '語', '勉', '強' ] []出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。