Skip to main content

abbreviate

Callable

  • abbreviate(count: number, digits?: number): string

  • Abbreviate a number to a shorter string

    @example
    abbreviate(123456789) => "123M"

    Parameters

    • count: number

      The number to abbreviate

    • optionaldigits: number

      The number of digits to keep

    Returns string

    The abbreviated string