Files
30-seconds-of-code/test/chainAsync/chainAsync.js
2018-02-04 17:38:39 +02:00

6 lines
119 B
JavaScript

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