leftOut関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Why a code Kuni knows has no flag in this version.
インポート
import { leftOut } from "@johnmorrisdotca/hata/manifest";
定義
function leftOut(code: string): LeftOutRecord | null
引数
| 名前 | 型 | 説明 |
|---|---|---|
code | string | A code in any case. |
戻り値
LeftOutRecord | null
The record with its reason, or null when the code has a flag, or is not one Kuni knows here.
例
import { leftOut } from "@johnmorrisdotca/hata/manifest";
console.log(leftOut("EH")?.kind); // "no-flag"
console.log(leftOut("JP")); // null: Japan has a flagno-flag
null出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。