3 lines
89 B
JavaScript
3 lines
89 B
JavaScript
export function clamp(min, ideal, max) {
|
|
return Math.max(min, Math.min(ideal, max));
|
|
};
|