Skip to content

Commit 0c221a8

Browse files
authored
style: disable lint rule
Signed-off-by: Athan <kgryte@gmail.com>
1 parent 36e4da4 commit 0c221a8

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

  • lib/node_modules/@stdlib/math/strided/special/asinh-by/test

lib/node_modules/@stdlib/math/strided/special/asinh-by/test/test.main.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,21 +74,17 @@ tape( 'the function computes the hyperbolic arcsine via a callback function', fu
7474
asinhBy( x.length, x, 1, y, 1, accessor );
7575
t.deepEqual( y, expected, 'deep equal' );
7676

77-
x = [];
78-
for ( i = 0; i < 5; i++ ) {
79-
x.push( void 0 );
80-
}
77+
// eslint-disable-next-line stdlib/no-new-array
78+
x = new Array( 5 ); // sparse array
8179
y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];
8280

8381
expected = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];
8482

8583
asinhBy( x.length, x, 1, y, 1, accessor );
8684
t.deepEqual( y, expected, 'deep equal' );
8785

88-
x = [];
89-
for ( i = 0; i < 5; i++ ) {
90-
x.push( void 0 );
91-
}
86+
// eslint-disable-next-line stdlib/no-new-array
87+
x = new Array( 5 ); // sparse array
9288
x[ 2 ] = rand();
9389
y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];
9490

0 commit comments

Comments
 (0)