Files
30-seconds-of-code/test/chainAsync/chainAsync.js
2018-01-17 13:40:40 -05:00

6 lines
119 B
JavaScript

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