2024-01-29 09:26:07 +08:00
|
|
|
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
2024-08-02 18:19:39 +08:00
|
|
|
exports.call = call;
|
2024-01-29 09:26:07 +08:00
|
|
|
function call(funcs, ...args) {
|
|
|
|
if (Array.isArray(funcs)) {
|
2024-08-02 18:19:39 +08:00
|
|
|
funcs.forEach(func => call(func, ...args));
|
2024-01-29 09:26:07 +08:00
|
|
|
}
|
2024-08-02 18:19:39 +08:00
|
|
|
else {
|
2024-01-29 09:26:07 +08:00
|
|
|
return funcs(...args);
|
2024-08-02 18:19:39 +08:00
|
|
|
}
|
2024-01-29 09:26:07 +08:00
|
|
|
}
|