(countryCode?: string)
| 18 | * @returns default currency code, or USD if not found |
| 19 | */ |
| 20 | export function defaultCurrency(countryCode?: string): string { |
| 21 | countryCode = canonicalizeCountryCode(countryCode) |
| 22 | return ( |
| 23 | (countryCode && countryCode in data && data[countryCode as 'US']) || 'USD' |
| 24 | ) |
| 25 | } |
| 26 | |
| 27 | /** |
| 28 | * Look up countries using a default currency. |
no test coverage detected