capitalCitiesfunction
The cities of the tier capitals: every capital, of a country or of a subdivision, of any size. 4,283 of them, the most populous first, each a frozen object; the list is made on the first call and shared.
Import it
import { capitalCities } from "@johnmorrisdotca/kuni/cities/capitals";
Definition
function capitalCities(): readonly City[]
Returns
readonly City[]
The list. Join it with other tiers through citySet in
Examples
import { capitalCities } from "@johnmorrisdotca/kuni/cities/capitals";
console.log(capitalCities().length > 0); // true
console.log(capitalCities()[0].name.en); // "Tokyo"
console.log(capitalCities()[0].id); // "Q1490"
console.log(capitalCities()[0].country); // "JP"true
Tokyo
Q1490
JPWhat it prints (run when this page was built)