Skip to content

Commit b81fb3c

Browse files
chore: fix JavaScript lint errors
PR-URL: #7065 Closes: #7060 Co-authored-by: Philipp Burckhardt <[email protected]> Reviewed-by: Philipp Burckhardt <[email protected]> Signed-off-by: Philipp Burckhardt <[email protected]>
1 parent 296ea30 commit b81fb3c

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)