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

Leveltype

A level of subdivision: 1 for a country's first division, 2 and 3 for those inside one, or "all".

Import it

import type { Level } from "@johnmorrisdotca/kuni/subdivisions";

Definition

type Level = 1 | 2 | 3 | "all";

Examples

import type { Level } from "@johnmorrisdotca/kuni/subdivisions";

const value: Level = "all";
console.log(typeof value === "object" ? Object.keys(value).slice(0,6) : value);
all

What it prints (run when this page was built)

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