Skip to Content
๐ŸŽฒ Welcome to RandBox - Powerful JavaScript Random Data Generation Library! Learn More

province

// usage randBox.province() randBox.province({full: true}) randBox.province({full: true})

Return a random province.

randBox.province(); => 'ON'

By default, returns only the 2 letter abbreviation for province.

Optionally specify that it ought to return a full province name.

randBox.province({full: true}); => 'Nova Scotia'

Optionally specify the country from which it should return the province name.

randBox.province({country: 'it', full: true}); => 'Vicenza'

Note, currently support for country is limited to: 'ca', 'it'.

Last updated on: