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
JPWhat it prints (run when this page was built)