(x: number)
| 4 | |
| 5 | const _longFormatter = new Intl.NumberFormat(undefined, { maximumFractionDigits: 0 }); |
| 6 | export function formatLong(x: number): string { |
| 7 | return _longFormatter.format(x); |
| 8 | } |
| 9 | |
| 10 | export function formatBytes(bytes: number, decimals = 2): string { |
| 11 | if (bytes === 0) return '0 Bytes'; |
no outgoing calls
no test coverage detected