Further addressed comments by @skatcat31

This commit is contained in:
RobertAKARobin
2018-12-12 15:53:48 -06:00
parent 0668b1abde
commit 9e8ccd4641

View File

@ -10,7 +10,7 @@ const chainAsync = fns => {
const last = fns[fns.length - 1];
const next = () => {
const fn = fns[curr++]
fn === last ? fn(undefined) : fn(next);
fn === last ? fn() : fn(next);
}
next();
};