We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
github-wiki-example / utilities / formatCurrency
formatCurrency(amount, currencyCode): string
amount
currencyCode
string
Defined in: utilities.ts:17
Formats a number as currency with a given currency code. Utilizes the Intl.NumberFormat API to handle locale-specific currency formatting.
number
The formatted currency string in the format "$1,234.56".