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 · All subdivisions

allSubdivisionsfunction

Every subdivision of every country, every level, in code order.

Import it

import { allSubdivisions } from "@johnmorrisdotca/kuni/subdivisions";

Definition

function allSubdivisions(): readonly Subdivision[]

Returns

readonly Subdivision[]

The 5,050 subdivisions, frozen and shared.

Examples

import { allSubdivisions } from "@johnmorrisdotca/kuni/subdivisions";

console.log(allSubdivisions().length);   // 5050
5050

What it prints (run when this page was built)

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