aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/clamp.js
diff options
context:
space:
mode:
authorsharkiecodes <lanyi_stroud@brown.edu>2025-06-13 10:17:46 -0400
committersharkiecodes <lanyi_stroud@brown.edu>2025-06-13 10:17:46 -0400
commitfbf768dd4c7734cfdcca38fd1dc1ecf63c64d985 (patch)
tree1c267a3762543b469805d0e08e13f9d311e6a036 /src/client/util/clamp.js
parent2c947f1ba7785ccbb705c0dce7e6bd64821da99d (diff)
parenta7a7a5a75845d40f835a38a3af24f000db50009b (diff)
Merge branch 'master' into lanyi-branch
Diffstat (limited to 'src/client/util/clamp.js')
-rw-r--r--src/client/util/clamp.js24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/client/util/clamp.js b/src/client/util/clamp.js
index 9c7fd78a4..8d74b5636 100644
--- a/src/client/util/clamp.js
+++ b/src/client/util/clamp.js
@@ -1,15 +1,15 @@
-"use strict";
+'use strict';
-Object.defineProperty(exports, "__esModule", {
- value: true
+Object.defineProperty(exports, '__esModule', {
+ value: true,
});
-exports.default = clamp;
function clamp(min, val, max) {
- if (val < min) {
- return min;
- }
- if (val > max) {
- return max;
- }
- return val;
-} \ No newline at end of file
+ if (val < min) {
+ return min;
+ }
+ if (val > max) {
+ return max;
+ }
+ return val;
+}
+exports.default = clamp;