Skip to content

Commit 3ed1a6e

Browse files
authored
chore: fix JavaScript lint errors
PR-URL: #11047 Closes: #11045 Reviewed-by: Philipp Burckhardt <pburckhardt@outlook.com> Signed-off-by: Baixiaochun <baixiaochun2024@outlook.com>
1 parent c4d51db commit 3ed1a6e

File tree

1 file changed

+3
-3
lines changed
  • lib/node_modules/@stdlib/utils/inmap/examples

1 file changed

+3
-3
lines changed

lib/node_modules/@stdlib/utils/inmap/examples/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ function scale( value, index, collection ) {
3535
return value * index;
3636
}
3737

38-
arr = new Array( 100 );
39-
for ( i = 0; i < arr.length; i++ ) {
40-
arr[ i ] = i;
38+
arr = [];
39+
for ( i = 0; i < 100; i++ ) {
40+
arr.push( i );
4141
}
4242
out = inmap( arr, scale );
4343

0 commit comments

Comments
 (0)