Function formatValue

  • Formats a value based on the provided configuration.

    Parameters

    • value: any

      The value to format

    • conf: FormatConfig

      Configuration options for formatting

    Returns any

    The formatted value or the original value if the format is not specified

    formatValue(1000, { format: 'currency', currency: 'USD' });
    // => "$1,000.00" in an English locale