Files
30-seconds-of-code/test/chainAsync/chainAsync.js
2018-08-02 13:49:33 +03:00

7 lines
126 B
JavaScript

const chainAsync = fns => {
let curr = 0;
const next = () => fns[curr++](next);
next();
};
module.exports = chainAsync;