Skip to content
Merged
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions lib/node_modules/@stdlib/utils/async/if-then/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,9 @@ function ifthenAsync( predicate, x, y, done ) {
return done( error );
}
nargs = arguments.length;
args = new Array( nargs );
args[ 0 ] = null;
args = [ null ];
for ( i = 1; i < nargs; i++ ) {
args[ i ] = arguments[ i ];
args.push(arguments[ i ]);
}
done.apply( null, args );
}
Expand Down