• Format a number value to currency, separated into its individual parts Intended for limited use. Consider creating a CurrencyFormatter object when formatting currency values in bulk.

    Parameters

    • value: number

      The value to format

    • currencyOptions: CurrencyOptions

      Options to apply to the formatter, including locale and currency ISO code

    Returns NumberFormatPart[]

    An ordered array of objects representing the parts of the formatted currency, each with a type and value

Generated using TypeDoc