framework/js/dist-typings/common/utils/abbreviateNumber.d.ts

9 lines
210 B
TypeScript
Raw Normal View History

/**
* The `abbreviateNumber` utility converts a number to a shorter localized form.
*
* @example
* abbreviateNumber(1234);
* // "1.2K"
*/
export default function abbreviateNumber(number: number): string;