Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dailydotdev/apps
/ clamp
Function
clamp
packages/shared/src/components/shell/constants.ts:101–101 ·
view source on GitHub ↗
(value: number)
Source
from the content-addressed store, hash-verified
99
from + (to - from) * p;
100
101
export
const
clamp = (value: number): number => Math.min(1, Math.max(0, value));
Callers
1
tabAt
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected