UNPKG

takin

Version:

Front end engineering base toolchain and scaffold

16 lines 419 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.compose = void 0; /** * 组合多个函数为一个,顺序执行 * @param fns - 函数列表 */ function compose(fns) { return async function composedFn(...args) { for await (const fn of fns) { await fn.call(this, ...args); } }; } exports.compose = compose; //# sourceMappingURL=compose.js.map