MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / clamp

Function clamp

apps/webapp/app/utils/lerp.ts:13–15  ·  view source on GitHub ↗
(value: number, min: number, max: number)

Source from the content-addressed store, hash-verified

11
12/** Clamps a value between a min and max */
13export function clamp(value: number, min: number, max: number) {
14 return Math.min(max, Math.max(min, value));
15}

Callers 1

lerpFunction · 0.85

Calls 2

minMethod · 0.80
maxMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…