UNPKG

@mantine/hooks

Version:

A collection of 50+ hooks for state and UI management

12 lines (11 loc) 414 B
"use client"; //#region packages/@mantine/hooks/src/utils/clamp/clamp.ts 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); } //#endregion exports.clamp = clamp; //# sourceMappingURL=clamp.cjs.map