mirror of
https://github.com/koodiklinikka/koodiklinikka.fi.git
synced 2026-03-12 07:03:12 +00:00
WIP
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user