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); // 235250
235What it prints (run when this page was built)