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 · Flags a page registers itself

removeFlagsfunction

Takes a registered set out: its flags are no longer found, listed or drawn, and its id can be registered again.

Import it

import { removeFlags } from "@johnmorrisdotca/hata/custom";

Definition

function removeFlags(sourceId: string): boolean

Parameters

NameTypeDescription
sourceIdstring

The set's id, as in its info.id.

Returns

boolean

true when there was such a set.

Examples

import { removeFlags } from "@johnmorrisdotca/hata/custom";

console.log(removeFlags("no-such-set")); // false
false

What it prints (run when this page was built)

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