SB-6.1-PRE

This commit is contained in:
ItzEmerald committed 2021-02-02 13:50:53 +00:00
1 parent 690169a409
commit 358a25f522
3760 files changed
+300059 -36

No files matched your search

+33
View File
@@ -0,0 +1,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'`.