mirror of
https://gitee.com/bimuziyan/ccc-obfuscated-code.git
synced 2026-05-09 22:03:35 +08:00
580 B
580 B
province
// usage
chance.province()
chance.province({full: true})
chance.province({full: true})
Return a random province.
chance.province();
=> 'ON'
By default, returns only the 2 letter abbreviation for province.
Optionally specify that it ought to return a full province name.
chance.province({full: true});
=> 'Nova Scotia'
Optionally specify the country from which it should return the province name.
chance.province({country: 'it', full: true});
=> 'Vicenza'
Note, currently support for country is limited to: 'ca', 'it'.