Skip to content

Commit 2b738a6

Browse files
committed
fix: lint
1 parent 4b59b7e commit 2b738a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/node_modules/@stdlib/stats/mskmax/benchmark/benchmark.assign.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ function createBenchmark( len ) {
5757
x = new ndarray( options.dtype, x, [ len ], [ 1 ], 0, 'row-major' );
5858

5959
// Create a mask (mask out every 5th element):
60-
mbuf = new Array( len );
60+
mbuf = [];
6161
for ( i = 0; i < len; i++ ) {
62-
mbuf[ i ] = ( i % 5 === 0 ) ? 1 : 0;
62+
mbuf.push( ( i % 5 === 0 ) ? 1 : 0 );
6363
}
6464
mask = new ndarray( 'uint8', mbuf, [ len ], [ 1 ], 0, 'row-major' );
6565

0 commit comments

Comments
 (0)