mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
Add function for formatting large numbers
This commit is contained in:
parent
fd47ba9d69
commit
225f4084b2
1 changed files with 5 additions and 0 deletions
|
@ -1044,3 +1044,8 @@ export function isValidEmbed(embed: any): boolean {
|
|||
const result = decodeAndValidateStrict(tEmbed, embed);
|
||||
return !(result instanceof StrictValidationError);
|
||||
}
|
||||
|
||||
const formatter = new Intl.NumberFormat("en-US");
|
||||
export function formatNumber(numberToFormat: number): string {
|
||||
return formatter.format(numberToFormat);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue