30 lines
538 B
JavaScript
30 lines
538 B
JavaScript
// Module ID: 4272
|
|
// Function ID: 37399
|
|
// Name: baseClamp
|
|
// Dependencies: []
|
|
|
|
// Module 4272 (baseClamp)
|
|
|
|
export default function baseClamp(arg0, arg1, arg2) {
|
|
let tmp = arg1;
|
|
let tmp2 = arg2;
|
|
let tmp3 = arg0;
|
|
if (arg0 == arg0) {
|
|
let tmp4 = arg0;
|
|
if (undefined !== tmp2) {
|
|
if (arg0 <= tmp2) {
|
|
tmp2 = arg0;
|
|
}
|
|
tmp4 = tmp2;
|
|
}
|
|
let tmp5 = tmp4;
|
|
if (undefined !== tmp) {
|
|
if (tmp4 >= tmp) {
|
|
tmp = tmp4;
|
|
}
|
|
tmp5 = tmp;
|
|
}
|
|
tmp3 = tmp5;
|
|
}
|
|
return tmp3;
|
|
};
|