Skip to the content

Hata旗

Load a native country or region flag, choose supported framing and keep each drawing’s source, author and licence.

Hata (旗) is Japanese for a flag. About the name

Contents

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

NameTypeDescription
codestring

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 flag
no-flag
null

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/hata 1.6.0.