Reference · Countries and lookup tools
CountryOrdertype
The order countries() lists them in: "code" (alpha-2), "en" (by English name) or "ja" (by Japanese name, in kana).
Import it
import type { CountryOrder } from "@johnmorrisdotca/kuni";
Definition
type CountryOrder = "code" | "en" | "ja";
Examples
import type { CountryOrder } from "@johnmorrisdotca/kuni";
const value: CountryOrder = "code";
console.log(typeof value === "object" ? Object.keys(value).slice(0,6) : value);codeWhat it prints (run when this page was built)