Skip to content

Commit 31cdf83

Browse files
committed
fix initial
1 parent 4eff823 commit 31cdf83

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ function sequence() {
1414
function run(things, initial, done) {
1515
var res = [];
1616
if (arguments.length < 3) {
17-
done = initial;
18-
initial = undef;
17+
if (typeof initial === 'function') {
18+
done = initial;
19+
initial = undef;
20+
}
1921
}
2022
done = done || noop;
2123

0 commit comments

Comments
 (0)