Reference · Flag source and framing metadata
leftOutfunction
Why a code Kuni knows has no flag in this version.
Import it
import { leftOut } from "@johnmorrisdotca/hata/manifest";
Definition
function leftOut(code: string): LeftOutRecord | null
Parameters
| Name | Type | Description |
|---|---|---|
code | string | A code in any case. |
Returns
LeftOutRecord | null
The record with its reason, or null when the code has a flag, or is not one Kuni knows here.
Examples
import { leftOut } from "@johnmorrisdotca/hata/manifest";
console.log(leftOut("EH")?.kind); // "no-flag"
console.log(leftOut("JP")); // null: Japan has a flagno-flag
nullWhat it prints (run when this page was built)