Skip to content

Commit 6d56a0d

Browse files
chore: fix JavaScript lint errors
PR-URL: #7073 Closes: #6603 Co-authored-by: Philipp Burckhardt <[email protected]> Reviewed-by: Philipp Burckhardt <[email protected]> Reviewed-by: Uday Kakade <[email protected]> Signed-off-by: Philipp Burckhardt <[email protected]>
1 parent 6792321 commit 6d56a0d

File tree

1 file changed

+3
-3
lines changed
  • lib/node_modules/@stdlib/_tools/github/rank-users/lib

1 file changed

+3
-3
lines changed

lib/node_modules/@stdlib/_tools/github/rank-users/lib/pluck.raw.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
function pluck( data, key ) {
2929
var out;
3030
var i;
31-
out = new Array( data.length );
32-
for ( i = 0; i < out.length; i++ ) {
33-
out[ i ] = [ i, data[i][key] ];
31+
out = [];
32+
for ( i = 0; i < data.length; i++ ) {
33+
out.push( [ i, data[i][key] ] );
3434
}
3535
return out;
3636
}

0 commit comments

Comments
 (0)