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

CONTINENTSconstant

The seven continents, as two letters: Africa, Antarctica, Asia, Europe, North America, Oceania, South America.

Import it

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

Definition

const CONTINENTS: readonly ["AF", "AN", "AS", "EU", "NA", "OC", "SA"] = ["AF", "AN", "AS", "EU", "NA", "OC", "SA"] as const

Examples

import { CONTINENTS, continentName } from "@johnmorrisdotca/kuni";

console.log(CONTINENTS.length); // 7
console.log(CONTINENTS.map((one) => continentName(one, "ja"))[0]); // "アフリカ"
7
アフリカ

What it prints (run when this page was built)

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