Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/DavidHDev/react-bits
/ clamp
Function
clamp
src/components/common/Preview/PreviewSlider.jsx:4–4 ·
view source on GitHub ↗
(val, min, max)
Source
from the content-addressed store, hash-verified
2
import
'../../../css/preview-slider.css'
;
3
4
const clamp = (val, min, max) => Math.min(Math.max(val, min), max);
5
const stepDecimals = (step) => {
6
const s = step.toString();
7
const dot = s.indexOf(
'.'
);
Callers
1
PreviewSlider
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected