6 lines
119 B
JavaScript
6 lines
119 B
JavaScript
const chainAsync = fns => {
|
|
let curr = 0;
|
|
const next = () => fns[curr++](next);
|
|
next();
|
|
};
|
|
module.exports = chainAsync; |