@sqlrooms/utils / formatCountShort
Function: formatCountShort()
formatCountShort(
n
):string
Formats a number as a string with thousands separators and SI prefix. Example: 1234567 -> "1M"
Parameters
Parameter | Type |
---|---|
n | number | { valueOf : number ; } |
Returns
string