API reference / @localizer/format-number / currencyCodeFormatter
Function: currencyCodeFormatter()
currencyCodeFormatter<
T>(options?):ValueFormatter<T>
Defined in: currencyCodeFormatter.ts:33
Creates a formatter to extract the currency symbol from a currency code.
Type Parameters
| Type Parameter | Description |
|---|---|
T extends CurrencyCode | The currency code type. |
Parameters
| Parameter | Type | Description |
|---|---|---|
options? | NumberFormatOptions | Optional formatting options. |
Returns
A ValueFormatter that maps a currency code to its symbol.