Skip to content

Commit 21775b0

Browse files
committed
chore: fix JavaScript lint errors (issue #7060)
1 parent d3e9442 commit 21775b0

File tree

1 file changed

+6
-6
lines changed
  • lib/node_modules/@stdlib/utils/unzip/lib

1 file changed

+6
-6
lines changed

lib/node_modules/@stdlib/utils/unzip/lib/main.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,19 +83,19 @@ function unzip( arr, idx ) {
8383
}
8484
numVals = idx.length;
8585
} else {
86-
idx = new Array( numVals );
86+
idx = [];
8787
for ( i = 0; i < numVals; i++ ) {
88-
idx[ i ] = i;
88+
idx.push(i);
8989
}
9090
}
91-
out = new Array( numVals );
91+
out = [];
9292
for ( j = 0; j < numVals; j++ ) {
93-
tmp = new Array( len );
93+
tmp = [];
9494
k = idx[ j ];
9595
for ( i = 0; i < len; i++ ) {
96-
tmp[ i ] = arr[ i ][ k ];
96+
tmp.push(arr[ i ][ k ]);
9797
}
98-
out[ j ] = tmp;
98+
out.push(tmp);
9999
}
100100
return out;
101101
}

0 commit comments

Comments
 (0)