Skip to content

Commit a5485e6

Browse files
Fixed JavaScript lint errors #8390
1 parent eed4bf0 commit a5485e6

File tree

1 file changed

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

1 file changed

+3
-3
lines changed

lib/node_modules/@stdlib/utils/some-by/examples/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ var bool;
2929
var arr;
3030
var i;
3131

32-
arr = new Array( 100 );
33-
for ( i = 0; i < arr.length; i++ ) {
34-
arr[ i ] = randu();
32+
arr = [];
33+
for ( i = 0; i < 100; i++ ) {
34+
arr.push( randu() );
3535
}
3636

3737
bool = someBy( arr, 5, threshold );

0 commit comments

Comments
 (0)