Skip to content

Commit 7e82b0c

Browse files
bhatraasimkgryte
andauthored
chore: fix JavaScript lint errors
PR-URL: #8400 Closes: #8390 Co-authored-by: Athan Reines <kgryte@gmail.com> Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent df3a5eb commit 7e82b0c

File tree

1 file changed

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

1 file changed

+3
-10
lines changed

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

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,14 @@
1818

1919
'use strict';
2020

21-
var randu = require( '@stdlib/random/base/randu' );
21+
var uniform = require( '@stdlib/random/array/uniform' );
2222
var someBy = require( './../lib' );
2323

2424
function threshold( value ) {
2525
return ( value > 0.95 );
2626
}
2727

28-
var bool;
29-
var arr;
30-
var i;
28+
var arr = uniform( 100, 0.0, 1.0 );
3129

32-
arr = new Array( 100 );
33-
for ( i = 0; i < arr.length; i++ ) {
34-
arr[ i ] = randu();
35-
}
36-
37-
bool = someBy( arr, 5, threshold );
30+
var bool = someBy( arr, 5, threshold );
3831
console.log( bool );

0 commit comments

Comments
 (0)