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