Reference · CA subdivision facts
SUBDIVISION_FACTSconstant
The facts about the subdivisions of Canada, in code order, one for each subdivision, every level. Also the default export.
Import it
import { SUBDIVISION_FACTS } from "@johnmorrisdotca/kuni/subdivision-facts/ca";
Definition
const SUBDIVISION_FACTS: readonly SubdivisionFacts[] = expandSubdivisionFacts(CA)
Examples
import facts from "@johnmorrisdotca/kuni/subdivision-facts/ca";
console.log(facts.length); // 13
console.log(facts[0].code); // "CA-AB"13
CA-ABWhat it prints (run when this page was built)