Files
30-seconds-of-code/test/chainAsync/chainAsync.js

6 lines
118 B
JavaScript

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