Frontend refactor to move response handler, key input handling, and more into new utilities folder (#260)

Part of #124
This commit is contained in:
Keavon Chambers
2021-07-14 14:31:09 -07:00
committed by GitHub
parent 9d34aa4867
commit 726152759f
14 changed files with 80 additions and 66 deletions
+3
View File
@@ -0,0 +1,3 @@
export function clamp(value: number, min = 0, max = 1) {
return Math.max(min, Math.min(value, max));
}