17 lines
290 B
JavaScript
17 lines
290 B
JavaScript
// Module ID: 323
|
|
// Function ID: 324
|
|
// Name: clamp
|
|
// Dependencies: []
|
|
|
|
// Module 323 (clamp)
|
|
arg5.default = function clamp(arg0, arg1, arg2) {
|
|
let tmp = arg0;
|
|
let tmp2 = arg1;
|
|
if (arg1 >= arg0) {
|
|
if (tmp2 > arg2) {
|
|
tmp2 = arg2;
|
|
}
|
|
tmp = tmp2;
|
|
}
|
|
return tmp;
|
|
};
|