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