How to use the i18n-iso-countries.alpha2ToAlpha3 function in i18n-iso-countries

To help you get started, we’ve selected a few i18n-iso-countries examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github topcoder-platform / community-app / src / shared / utils / countries.js View on Github external
_.forIn(countryUtil.getNames('en'), (name, alpha2) => {
  countries.push({ name, alpha3: countryUtil.alpha2ToAlpha3(alpha2) });
});