Skip to the content

Kuni国

Look up countries, codes, names and subdivisions, load country data on demand and mount a native country card.

Kuni (国) is Japanese for a country. About the name

Contents

Reference · Regions and international bodies

GROUPING_KINDSconstant

What kind of grouping it is: a continent, a UN M49 area, an international body's members, a well-known informal grouping, or a grouping of the subdivisions inside one country.

Import it

import { GROUPING_KINDS } from "@johnmorrisdotca/kuni/groupings";

Definition

const GROUPING_KINDS: readonly ["continent", "m49", "membership", "informal", "subdivision"] = ["continent", "m49", "membership", "informal", "subdivision"] as const

Examples

import { GROUPING_KINDS, groupings } from "@johnmorrisdotca/kuni/groupings";

console.log(GROUPING_KINDS.map((kind) => groupings({ kind }).length)[0]); // 7
7

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/kuni 1.4.0.