- truncateNumber(
originalValue: Readonly<unknown>,
__namedParameters?: Partial<
{
customSuffixes: undefined
| readonly string[];
maxLength: undefined | number;
},
>,
): string Parameters
- originalValue: Readonly<unknown>
- __namedParameters: Partial<
{
customSuffixes: undefined
| readonly string[];
maxLength: undefined | number;
},
> = {}
Returns string
Truncates a number such that is will at a max have 6 (customizable) characters including suffix, decimal point, or comma.
Default suffixes are in defaultTruncationSuffixes: