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

SubdivisionsOptionstype

What subdivisions() may be asked.

Import it

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

Definition

interface SubdivisionsOptions {
    level?: Level;
}

Members

NameTypeDescription
level (optional)Level | undefined

1 (the default) for the first division only; 2 or 3 for one deeper level; "all" for every level.

Examples

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

const value: SubdivisionsOptions = {level:1};
console.log(typeof value === "object" ? Object.keys(value).slice(0,6) : value);
[ 'level' ]

What it prints (run when this page was built)

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