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 · Country trivia

allTriviafunction

The trivia about every country, in alpha-2 order: one object for each of the 250 codes, the list and its objects frozen and shared.

Import it

import { allTrivia } from "@johnmorrisdotca/kuni/trivia";

Definition

function allTrivia(): readonly CountryTrivia[]

Returns

readonly CountryTrivia[]

Every country's trivia.

Examples

import { allTrivia } from "@johnmorrisdotca/kuni/trivia";

console.log(allTrivia().length);                                              // 250
console.log(allTrivia().filter((one) => one.largestCity !== null).length);    // 235
250
235

What it prints (run when this page was built)

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