MCPcopy Index your code
hub / github.com/callstack/agent-device / parseNonNegativeIntToken

Function parseNonNegativeIntToken

src/replay/script-utils.ts:306–311  ·  view source on GitHub ↗
(token: string | undefined)

Source from the content-addressed store, hash-verified

304}
305
306function parseNonNegativeIntToken(token: string | undefined): number | null {
307 if (!token) return null;
308 const value = Number(token);
309 if (!Number.isFinite(value) || value < 0) return null;
310 return Math.floor(value);
311}

Callers 2

parseReplaySeriesFlagsFunction · 0.85
parseReplayRuntimeFlagsFunction · 0.85

Calls 1

isFiniteMethod · 0.80

Tested by

no test coverage detected