UNPKG

580 BMarkdownView Raw
1# province
2
3```js
4// usage
5chance.province()
6chance.province({full: true})
7chance.province({full: true})
8```
9
10Return a random province.
11
12```js
13chance.province();
14=> 'ON'
15```
16
17By default, returns only the 2 letter abbreviation for province.
18
19Optionally specify that it ought to return a full province name.
20
21```js
22chance.province({full: true});
23=> 'Nova Scotia'
24```
25
26Optionally specify the country from which it should return the province name.
27
28```js
29chance.province({country: 'it', full: true});
30=> 'Vicenza'
31```
32
33Note, currently support for country is limited to: `'ca', 'it'`.