
CA Provinces
List of CA provinces and territories.
Installation
npm install provinces-ca --save
Usage
import provinces from 'provinces-ca';
console.log(provinces);
const example1 = provinces.filter((x) => !x.territory);
console.log(example1);
const example2 = provinces.map((x) => x.abbreviation);
console.log(example2);
The default export from provinces-ca
is an array of object with the following structure:
name | string | Province name. | Ontario |
abbreviation | string | Province abbreviation. | ON |
territory | boolean | Indicates if the province is a territory. | false |
Development
npm install
npm run build