This repository has been archived on 2026-03-28. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
StasisWarden-Legacy/node_modules/es-toolkit/dist/function/flow.mjs
T

12 lines
291 B
JavaScript

function flow(...funcs) {
return function (...args) {
let result = funcs.length ? funcs[0].apply(this, args) : args[0];
for (let i = 1; i < funcs.length; i++) {
result = funcs[i].call(this, result);
}
return result;
};
}
export { flow };