Reference · Parsing, formatting and shared types
CA_PROVINCESconstant
Every name and other spelling of a Canadian province, to its code: the names and the alternatives together.
Import it
import { CA_PROVINCES } from "@johnmorrisdotca/address-plus";
Definition
const CA_PROVINCES: Record<string, string> = {
...CA_PROVINCE_NAMES,
...CA_PROVINCE_ALTERNATIVES,
}
Examples
import { CA_PROVINCES } from "@johnmorrisdotca/address-plus";
console.log(CA_PROVINCES["nfld"]);
// → "NL"NLWhat it prints (run when this page was built)