aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/clamp.js
diff options
context:
space:
mode:
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;