Skip to content

Commit bae5062

Browse files
authored
Apply suggestions from code review
Signed-off-by: Athan <[email protected]>
1 parent b73ce84 commit bae5062

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/node_modules/@stdlib/strided/base/map-by2/test/test.main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ tape( 'the function applies a binary function to indexed strided array elements
7272
mapBy2( x.length, x, 1, y, 1, z, 1, add, accessor );
7373
t.deepEqual( z, expected, 'deep equal' );
7474

75-
x = [ ]; // sparse array
76-
x.length = 5;
75+
// Create a sparse array:
76+
x = new Array( 5 ); // eslint-disable-line stdlib/no-new-array
7777
y = [ 1.0, 1.0, 2.0, 2.0, 3.0 ];
7878
z = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];
7979

lib/node_modules/@stdlib/strided/base/map-by2/test/test.ndarray.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ tape( 'the function applies a binary function to indexed strided array elements
7272
mapBy2( x.length, x, 1, 0, y, 1, 0, z, 1, 0, add, accessor );
7373
t.deepEqual( z, expected, 'deep equal' );
7474

75-
x = [ ]; // sparse array
76-
x.length = 5;
75+
// Create a sparse array:
76+
x = new Array( 5 ); // eslint-disable-line stdlib/no-new-array
7777
y = [ 1.0, 1.0, 2.0, 2.0, 3.0 ];
7878
z = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];
7979

0 commit comments

Comments
 (0)