Files
30-seconds-of-code/test/chainAsync/chainAsync.js
2018-01-09 06:09:49 -05:00

5 lines
88 B
JavaScript

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