Options for the numberFormatter function.

interface NumberFormatterOptions {
    addCommaSeparators?: boolean;
    currencyPrefix?: string;
}

Properties

addCommaSeparators?: boolean

Whether to add comma separators to the formatted number.

true
currencyPrefix?: string

Optional currency prefix to add to the formatted number. If not provided, no prefix will be added.

void