formatMoney
formatMoney(
money,locale?):string|undefined
Formats a price in the reader’s locale from minor units and the currency’s exponent, never by joining strings. null (an unpriced variant) and undefined give undefined:
no price is drawn, and never zero.
Parameters
Section titled “Parameters”MoneyLike | null | undefined
locale?
Section titled “locale?”string
Returns
Section titled “Returns”string | undefined