Skip to content

utilities.Function.formatCurrency

Tom Grey edited this page Jan 13, 2024 · 7 revisions

formatCurrency(amount, currencyCode): string

Function to format a number as currency.

Parameters

amount: number

The amount to be formatted.

currencyCode: string

The currency code (e.g., USD, EUR).

Returns

string

The formatted currency string.

Source

utilities.ts:14


Generated using typedoc-plugin-markdown and TypeDoc

Clone this wiki locally