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 · Cities of a million or more (capitals too)

cities1mfunction

The cities of the tier 1m: the cities of a million people or more (capitals too). 666 of them, the most populous first, each a frozen object; the list is made on the first call and shared.

Import it

import { cities1m } from "@johnmorrisdotca/kuni/cities/1m";

Definition

function cities1m(): readonly City[]

Returns

readonly City[]

The list. Join it with other tiers through citySet in

Examples

import { cities1m } from "@johnmorrisdotca/kuni/cities/1m";

console.log(cities1m().length > 0);          // true
console.log(cities1m()[0].name.en);          // "Tokyo"
console.log(cities1m()[0].id);               // "Q1490"
console.log(cities1m()[0].country);          // "JP"
true
Tokyo
Q1490
JP

What it prints (run when this page was built)

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