Clamps number within the inclusive lower and upper bounds.
The number to clamp.
The lower bound.
The upper bound.
The clamped number.
clamp(42, 30, 40);// => 40 Copy
clamp(42, 30, 40);// => 40
Generated using TypeDoc
Clamps number within the inclusive lower and upper bounds.