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

SubdivisionTypetype

A kind of subdivision, in kebab case: "prefecture", "state", "autonomous-community".

Import it

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

Also exported from: @johnmorrisdotca/kuni

Definition

type SubdivisionType = (typeof SUBDIVISION_TYPES)[number];

Examples

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

const value: SubdivisionType = SUBDIVISION_TYPES[0];
console.log(typeof value === "object" ? Object.keys(value).slice(0,6) : value);
atoll

What it prints (run when this page was built)

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