(code: string)
| 823 | * This function should not be used anymore. Let `Intl.NumberFormat` determine the number of digits to display for the currency |
| 824 | */ |
| 825 | export function getNumberOfCurrencyDigits(code: string): number { |
| 826 | let digits; |
| 827 | const currency = CURRENCIES_EN[code]; |
| 828 | if (currency) { |
| 829 | digits = currency[ɵCurrencyIndex.NbOfDigits]; |
| 830 | } |
| 831 | return typeof digits === 'number' ? digits : DEFAULT_NB_OF_CURRENCY_DIGITS; |
| 832 | } |
no outgoing calls
no test coverage detected