mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-22 03:07:04 +02:00
feat: start of perforamnce
This commit is contained in:
1 parent
db4132f666
commit
7dfdf4c11b
13 files changed
+90
-50
No files matched your search
@@ -1,5 +1,4 @@
|
||||
const numberFormat = Intl.NumberFormat('en', { notation: 'compact' });
|
||||
|
||||
export function formatCompact(number: number) {
|
||||
export function formatCompact(locale: string, number: number) {
|
||||
const numberFormat = Intl.NumberFormat(locale, { notation: 'compact' });
|
||||
return numberFormat.format(number);
|
||||
}
|
||||
Reference in new issue
Block a user