Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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 */
13
export
function
clamp(value: number, min: number, max: number) {
14
return
Math.min(max, Math.max(min, value));
15
}
Callers
1
lerp
Function · 0.85
Calls
2
min
Method · 0.80
max
Method · 0.80
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…