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 · Places: countries of a continent, and search (the size counts every tier)

continentsfunction

The seven continents, from kuni's groupings, in the groupings' order: the first choice of a place chooser.

Import it

import { continents } from "@johnmorrisdotca/kuni/places";

Definition

function continents(): readonly PlaceContinent[]

Returns

readonly PlaceContinent[]

The continents, frozen: each with its code and its name in English and Japanese.

Examples

import { continents } from "@johnmorrisdotca/kuni/places";

console.log(continents().length);                       // 7
console.log(continents().map((one) => one.code).join(" ")); // "AF AN AS EU NA OC SA"
console.log(continents().find((one) => one.code === "AS")?.name.ja); // "アジア"
7
AF AN AS EU NA OC SA
アジア

What it prints (run when this page was built)

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