(code: string)
| 795 | * This function should not be used anymore. Let `Intl.NumberFormat` determine the number of digits to display for the currency |
| 796 | */ |
| 797 | export function getNumberOfCurrencyDigits(code: string): number { |
| 798 | let digits; |
| 799 | const currency = CURRENCIES_EN[code]; |
| 800 | if (currency) { |
| 801 | digits = currency[ɵCurrencyIndex.NbOfDigits]; |
| 802 | } |
| 803 | return typeof digits === 'number' ? digits : DEFAULT_NB_OF_CURRENCY_DIGITS; |
| 804 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…