MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / minOf

Function minOf

src/utils.ts:436–440  ·  view source on GitHub ↗
(values: readonly number[])

Source from the content-addressed store, hash-verified

434
435/** `Math.min(...values)` for a list of any length (see pushAll); Infinity for none. */
436export function minOf(values: readonly number[]): number {
437 let least = Infinity;
438 for (const value of values) least = Math.min(least, value);
439 return least;
440}
441
442export function clamp(value: number, min: number, max: number): number {
443 return Math.max(min, Math.min(max, value));

Callers 2

dedentDocstringFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected