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

Function toNumber

src/utils/output.ts:573–575  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

571}
572
573function toNumber(value: unknown): number {
574 return typeof value === 'number' && Number.isFinite(value) ? value : 0;
575}
576
577function applyContextWindow(lines: SnapshotDiffLine[], contextWindow: number): SnapshotDiffLine[] {
578 if (lines.length === 0) return lines;

Calls 1

isFiniteMethod · 0.80

Tested by

no test coverage detected