Rxova
Skip to content

currencyForCountry

function currencyForCountry(country): string | undefined;

Look up a likely currency for a country code. Best-effort — see the module doc. Returns undefined when the country is unknown.

ParameterTypeDescription
countrystringISO-3166-1 alpha-2 code, case-insensitive (e.g. 'BG').

string | undefined