SourceTermAnalysisSystem_vue/node_modules/@antv/x6-common/lib/event/util.js
2026-05-15 10:22:44 +08:00

17 lines
595 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.call = void 0;
const function_1 = require("../function");
function call(list, args) {
const results = [];
for (let i = 0; i < list.length; i += 2) {
const handler = list[i];
const context = list[i + 1];
const params = Array.isArray(args) ? args : [args];
const ret = function_1.FunctionExt.apply(handler, context, params);
results.push(ret);
}
return function_1.FunctionExt.toAsyncBoolean(results);
}
exports.call = call;
//# sourceMappingURL=util.js.map