MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / numberOf

Function numberOf

graph-ui/src/agents/agent-event.ts:150–159  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

148}
149
150function numberOf(value: unknown): number | undefined {
151 if (typeof value === 'number' && Number.isFinite(value)) {
152 return value;
153 }
154 if (typeof value === 'string' && value.trim().length > 0) {
155 const parsed = Number(value);
156 return Number.isFinite(parsed) ? parsed : undefined;
157 }
158 return undefined;
159}
160
161/**
162 * Der Zeilenbereich, wenn die Quelle einen nennt.

Callers 2

readLineSpanFunction · 0.70
readAgentEventFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected