Clamp's the given value to within the min and max bounds, inclusive.
import {clamp} from '@augment-vir/common';// `result` will be `40`const result = clamp(42, {min: 30, max: 40}); Copy
import {clamp} from '@augment-vir/common';// `result` will be `40`const result = clamp(42, {min: 30, max: 40});
@augment-vir/common
Clamp's the given value to within the min and max bounds, inclusive.