Skip to content

Commit b9b8bcf

Browse files
chore: resolve lint error in utils/async/while
PR-URL: #8269 Ref: #8268 Co-authored-by: Athan Reines <kgryte@gmail.com> Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent 5f5bb2d commit b9b8bcf

File tree

1 file changed

+2
-2
lines changed
  • lib/node_modules/@stdlib/utils/async/while/lib

1 file changed

+2
-2
lines changed

lib/node_modules/@stdlib/utils/async/while/lib/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ function whileAsync( predicate, fcn, done, thisArg ) {
112112

113113
// Cache the most recent results...
114114
if ( arguments.length > 1 ) {
115-
args = new Array( arguments.length-1 );
115+
args = [];
116116
for ( i = 1; i < arguments.length; i++ ) {
117-
args[ i-1 ] = arguments[ i ];
117+
args.push( arguments[ i ] );
118118
}
119119
}
120120
// Run the test condition:

0 commit comments

Comments
 (0)