decord/source/4290_apply.js
2026-07-24 07:16:23 +00:00

20 lines
472 B
JavaScript

// Module ID: 4290
// Function ID: 37529
// Name: apply
// Dependencies: []
// Module 4290 (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);
}
};