decord/source/4291_apply.js
2026-07-27 11:26:19 +00:00

20 lines
472 B
JavaScript

// Module ID: 4291
// Function ID: 37541
// Name: apply
// Dependencies: []
// Module 4291 (apply)
export default function apply(call) {
if (0 === arg2.length) {
return call.call(arg1);
} else if (1 === length) {
return call.call(arg1, arg2[0]);
} else if (2 === length) {
return call.call(arg1, arg2[0], arg2[1]);
} else if (3 === length) {
return call.call(arg1, arg2[0], arg2[1], arg2[2]);
} else {
return call.apply(arg1, arg2);
}
};