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 · Countries and lookup tools

Continenttype

A continent's two letters: "AF", "AN", "AS", "EU", "NA", "OC" or "SA".

Import it

import type { Continent } from "@johnmorrisdotca/kuni";

Definition

type Continent = (typeof CONTINENTS)[number];

Examples

import type { Continent } from "@johnmorrisdotca/kuni";
import { CONTINENTS } from "@johnmorrisdotca/kuni";

const value: Continent = CONTINENTS[0];
console.log(typeof value === "object" ? Object.keys(value).slice(0,6) : value);
AF

What it prints (run when this page was built)

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