Further addressed comments by @skatcat31
This commit is contained in:
@ -10,7 +10,7 @@ const chainAsync = fns => {
|
|||||||
const last = fns[fns.length - 1];
|
const last = fns[fns.length - 1];
|
||||||
const next = () => {
|
const next = () => {
|
||||||
const fn = fns[curr++]
|
const fn = fns[curr++]
|
||||||
fn === last ? fn(undefined) : fn(next);
|
fn === last ? fn() : fn(next);
|
||||||
}
|
}
|
||||||
next();
|
next();
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user