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

Function bounded

graph-ui/src/architecture/semantic-graph.ts:190–192  ·  view source on GitHub ↗
(value: number | undefined, fallback: number, maximum: number)

Source from the content-addressed store, hash-verified

188}
189
190function bounded(value: number | undefined, fallback: number, maximum: number): number {
191 return Number.isFinite(value) ? Math.max(1, Math.min(maximum, Math.floor(value!))) : fallback;
192}
193
194interface HierarchyBox {
195 key: string;

Callers 2

buildSemanticGraphFunction · 0.70
cappedFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected