Files
simpleidp/wwwroot/lib/popper.js/esm/utils/within.js
2025-08-19 16:58:51 +02:00

8 lines
262 B
JavaScript

import { max as mathMax, min as mathMin } from "./math.js";
export function within(min, value, max) {
return mathMax(min, mathMin(value, max));
}
export function withinMaxClamp(min, value, max) {
var v = within(min, value, max);
return v > max ? max : v;
}