CHIZU_COUNTRIES定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Every country, with its names in English and Japanese, its reading, its continent and which maps have it.
インポート
import { CHIZU_COUNTRIES } from "@johnmorrisdotca/chizu/names";
定義
const CHIZU_COUNTRIES: readonly ChizuCountry[]
例
import { CHIZU_COUNTRIES } from "@johnmorrisdotca/chizu/names";
const asia = CHIZU_COUNTRIES.filter((country) => country.group === "Asia");
console.log(CHIZU_COUNTRIES.length, asia.length, asia.find((country) => country.code === "KR")?.nameJa);
// 238 53 韓国238 53 韓国出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。