Skip to content

Commit 6d56a0d

Browse files
chore: fix JavaScript lint errors
PR-URL: stdlib-js#7073 Closes: stdlib-js#6603 Co-authored-by: Philipp Burckhardt <pburckhardt@outlook.com> Reviewed-by: Philipp Burckhardt <pburckhardt@outlook.com> Reviewed-by: Uday Kakade <141299403+udaykakade25@users.noreply.github.com> Signed-off-by: Philipp Burckhardt <pburckhardt@outlook.com>
1 parent 6792321 commit 6d56a0d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • lib/node_modules/@stdlib/_tools/github/rank-users/lib

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)