4 lines
83 B
JavaScript
4 lines
83 B
JavaScript
|
const clamp = (min, max, v) => Math.min(Math.max(v, min), max);
|
||
|
|
||
|
export { clamp };
|