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