mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
5 lines
179 B
TypeScript
5 lines
179 B
TypeScript
export function formatCompact(locale: string, number: number) {
|
|
const numberFormat = Intl.NumberFormat(locale, { notation: 'compact' });
|
|
return numberFormat.format(number);
|
|
}
|