(str: string)
| 507 | }; |
| 508 | export const UInt64Max = '18446744073709551615'; // can't be represented in js, would be rounded up to 18446744073709552000 |
| 509 | function isUInt64Maximum(str: string) { |
| 510 | if (str === UInt64Max) { |
| 511 | return true; |
| 512 | } |
| 513 | if (str === String(Number(UInt64Max))) { |
| 514 | return true; |
| 515 | } |
| 516 | return false; |
| 517 | } |
| 518 | |
| 519 | export const prettyBytes = (n: number | string | null | undefined, options?: PrettyValueOptions) => { |
| 520 | if (typeof n === 'undefined' || n === null) { |
no test coverage detected
searching dependent graphs…