subdivisionReforms関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The dated note of a country's subdivision rearrangement, or null when none is recorded.
The current ISO codes stay as they are. units says which of those codes the law joins, and the name it writes.
インポート
import { subdivisionReforms } from "@johnmorrisdotca/kuni/subdivision-reforms";
定義
function subdivisionReforms(country: string): SubdivisionReform | null
引数
| 名前 | 型 | 説明 |
|---|---|---|
country | string | An ISO 3166-1 alpha-2 code, in any case. |
戻り値
SubdivisionReform | null
The rearrangement, or null when this package has none for that country.
例
import { subdivisions } from "@johnmorrisdotca/kuni/subdivisions";
import { subdivisionReforms } from "@johnmorrisdotca/kuni/subdivision-reforms";
console.log(subdivisions("VN")?.length); // 63
console.log(subdivisionReforms("VN")?.effective); // "2025-06-12"
console.log(subdivisionReforms("VN")?.operating); // "2025-07-01"
console.log(subdivisionReforms("VN")?.units.length); // 34
console.log(subdivisionReforms("vn")?.law); // "Resolution 202/2025/QH15"
console.log(subdivisionReforms("JP")); // null63
2025-06-12
2025-07-01
34
Resolution 202/2025/QH15
null出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。