Skip to content

Conversation

@Gorsargs
Copy link

No description provided.

@Gorsargs
Copy link
Author

Gorsargs commented Jan 26, 2023

getCountryByLabel()
getCountryByValue()
One may want to get a country object of a specific country, these are the methods

Usage
countries.getCountryByLabel('Taiwan, Province of China') // { label: 'Taiwan, Province of China', value: 'TW' }
countries.getCountryByValue('TW') // { label: 'Taiwan, Province of China', value: 'TW' }

Native Usage
countries.native().getCountryByLabel('Taiwan, Province of China') // { label: '臺灣', value: 'TW' }
countries.native().getCountryByValue('TW') // { label: '臺灣', value: 'TW' }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant