Files
emaui/node_modules/@mantine/hooks/esm/utils/clamp/clamp.mjs
2026-05-29 15:23:46 +03:00

17 lines
372 B
JavaScript

'use client';
function clamp(value, min, max) {
if (min === void 0 && max === void 0) {
return value;
}
if (min !== void 0 && max === void 0) {
return Math.max(value, min);
}
if (min === void 0 && max !== void 0) {
return Math.min(value, max);
}
return Math.min(Math.max(value, min), max);
}
export { clamp };
//# sourceMappingURL=clamp.mjs.map