Function formatAggregateValue

  • The default text of an aggregate (e.g. in a footer cell or a status bar): numbers with at most two decimals and thousands separators, dates as date (en-US), null/undefined empty, everything else as text.

    Parameters

    • value: unknown

      an aggregation result

    Returns string

    the text

    Example

    formatAggregateValue(1234.5678);   // "1,234.57"
    formatAggregateValue(undefined); // ""

    Since

    1.1.94