paradiego
This commit is contained in:
+4
@@ -0,0 +1,4 @@
|
||||
function clamp(val, min = Number.MIN_SAFE_INTEGER, max = Number.MAX_SAFE_INTEGER) {
|
||||
return Math.max(min, Math.min(val, max));
|
||||
}
|
||||
export default clamp;
|
||||
+1
@@ -0,0 +1 @@
|
||||
export { default } from "./clamp.js";
|
||||
Reference in New Issue
Block a user