This commit is contained in:
Aarni Koskela
2022-02-11 16:54:44 +02:00
parent 5c237084f5
commit a4a04f1dac
14 changed files with 172 additions and 224 deletions

View File

@@ -4,7 +4,7 @@ type Props = {
threshold: number;
};
function clamp(min, max, value) {
function clamp(min: number, max: number, value: number) {
return Math.min(Math.max(value, min), max);
}