source: imaps-frontend/node_modules/@popperjs/core/lib/utils/within.js

main
Last change on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 262 bytes
Line 
1import { max as mathMax, min as mathMin } from "./math.js";
2export function within(min, value, max) {
3 return mathMax(min, mathMin(value, max));
4}
5export function withinMaxClamp(min, value, max) {
6 var v = within(min, value, max);
7 return v > max ? max : v;
8}
Note: See TracBrowser for help on using the repository browser.