Files
caria-website/module/@popperjs/core@2.11.8/lib/utils/within.js
Christian CUNAT-BRULE 5db1c28fd8
All checks were successful
Déploiement DEV / deploy (push) Successful in 9s
Ajout des modules
2026-08-06 20:51:00 +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;
}