32 lines
687 B
JavaScript
32 lines
687 B
JavaScript
// Module ID: 4468
|
|
// Function ID: 4469
|
|
// Name: clamp
|
|
// Dependencies: [637, 4469]
|
|
|
|
// Module 4468 (clamp)
|
|
|
|
export default function clamp(arg0, arg1, arg2) {
|
|
let tmp = arg2;
|
|
if (undefined === arg2) {
|
|
tmp = arg1;
|
|
}
|
|
let tmp3 = tmp;
|
|
if (undefined !== tmp) {
|
|
const tmp6 = require(637) /* toNumber */(tmp);
|
|
let num = 0;
|
|
if (tmp6 == tmp6) {
|
|
num = tmp6;
|
|
}
|
|
tmp3 = num;
|
|
}
|
|
let tmp7 = tmp2;
|
|
if (undefined !== arg1) {
|
|
const tmp10 = require(637) /* toNumber */(tmp2);
|
|
let num2 = 0;
|
|
if (tmp10 == tmp10) {
|
|
num2 = tmp10;
|
|
}
|
|
tmp7 = num2;
|
|
}
|
|
return require(4469) /* baseClamp */(require(637) /* toNumber */(arg0), tmp7, tmp3);
|
|
};
|