Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/compiler-explorer/compiler-explorer
/ clampValue
Method
clampValue
static/settings.ts:205–207 ·
view source on GitHub ↗
(value: number)
Source
from the content-addressed store, hash-verified
203
}
204
205
private clampValue(value: number): number {
206
return
Math.min(Math.max(value, this.min), this.max);
207
}
208
}
209
210
export
class
Settings {
Callers
2
getUi
Method · 0.95
putUi
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected