kanaFound関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Found: every place plain green — the right kana, the right size, the right mark.
インポート
import { kanaFound } from "@johnmorrisdotca/kotoba";
定義
function kanaFound(guess: readonly string[], word: readonly string[]): boolean
引数
| 名前 | 型 | 説明 |
|---|---|---|
guess | readonly string[] | The guessed word or kana array, with the same length as the hidden word. |
word | readonly string[] | The word or kana array specified by this signature. |
戻り値
boolean
Found: every place plain green — the right kana, the right size, the right mark.
例
import { kanaFound } from "@johnmorrisdotca/kotoba";
console.log(kanaFound(["は","な"],["は","な"]));true出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。