Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/scriptscat/scriptcat
/ clamp
Function
clamp
example/tests/gm_xhr_test.js:387–389 ·
view source on GitHub ↗
(value, min, max)
Source
from the content-addressed store, hash-verified
385
}
386
387
function
clamp(value, min, max) {
388
return
Math.min(Math.max(value, min), max);
389
}
390
391
// ---------- Assertion & request helpers ----------
392
const
state = { pass: 0, fail: 0, skip: 0 };
Callers
1
prettyStack
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected