Skip to content

Commit b9c5bcc

Browse files
chore: fix 'new Array()' js lint error (issue #9419)
1 parent 29fc92b commit b9c5bcc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,15 @@ tape( 'the function computes the absolute value of each indexed strided array el
6262
absBy( x.length, x, 1, y, 1, accessor );
6363
t.deepEqual( y, expected, 'deep equal' );
6464

65-
x = new Array( 5 ); // sparse array
65+
x = [ , , , , , ]; // sparse array of size 5
6666
y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];
6767

6868
expected = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];
6969

7070
absBy( x.length, x, 1, y, 1, accessor );
7171
t.deepEqual( y, expected, 'deep equal' );
7272

73-
x = new Array( 5 ); // sparse array
73+
x = [ , , , , , ]; // sparse array of size 5
7474
x[ 2 ] = -3.0;
7575
y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];
7676

0 commit comments

Comments
 (0)