リファレンス · 読み、表記、英語の意味、漢字、ローマ字から単語を引く
foldKana関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A text folded to hiragana: the katakana move down, ー and everything else stay. The reading of a loanword is found by either.
インポート
import { foldKana } from "@johnmorrisdotca/jisho/words";
定義
function foldKana(text: string): string
引数
| 名前 | 型 | 説明 |
|---|---|---|
text | string | Any text. |
戻り値
string
The text with each katakana changed to the hiragana of the same sound.
例
import { foldKana } from "@johnmorrisdotca/jisho/words";
console.log(foldKana("カミ")); // かみかみ出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。