Skip to content

Commit 2d93932

Browse files
authored
fix JavaScript lint errors
Issue: Using new Array() violates the stdlib/no-new-array rule. fix: creating array using an array literal Signed-off-by: VEER RAJ <[email protected]>
1 parent b47a8a7 commit 2d93932

File tree

1 file changed

+1
-1
lines changed
  • lib/node_modules/@stdlib/utils/async/if-then/lib

1 file changed

+1
-1
lines changed

lib/node_modules/@stdlib/utils/async/if-then/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ function ifthenAsync( predicate, x, y, done ) {
119119
return done( error );
120120
}
121121
nargs = arguments.length;
122-
args = new Array( nargs );
122+
args = Array.from({ length: nargs });
123123
args[ 0 ] = null;
124124
for ( i = 1; i < nargs; i++ ) {
125125
args[ i ] = arguments[ i ];

0 commit comments

Comments
 (0)