MCPcopy
hub / github.com/redpanda-data/console / isUInt64Maximum

Function isUInt64Maximum

frontend/src/utils/utils.ts:509–517  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

507};
508export const UInt64Max = '18446744073709551615'; // can't be represented in js, would be rounded up to 18446744073709552000
509function 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
519export const prettyBytes = (n: number | string | null | undefined, options?: PrettyValueOptions) => {
520 if (typeof n === 'undefined' || n === null) {

Callers 2

prettyBytesFunction · 0.85
prettyMillisecondsFunction · 0.85

Calls 2

NumberInterface · 0.85
StringInterface · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…