mirror of
https://github.com/flarum/framework.git
synced 2024-11-29 04:33:47 +08:00
c3a684c7ed
Includes transpiled JS/TS, and Typescript declaration files (typings). [skip ci]
9 lines
210 B
TypeScript
9 lines
210 B
TypeScript
/**
|
|
* The `abbreviateNumber` utility converts a number to a shorter localized form.
|
|
*
|
|
* @example
|
|
* abbreviateNumber(1234);
|
|
* // "1.2K"
|
|
*/
|
|
export default function abbreviateNumber(number: number): string;
|