We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
new Array()
1 parent 09d4050 commit 7f639d3Copy full SHA for 7f639d3
lib/node_modules/@stdlib/_tools/github/rank-followers/lib/pipeline.js
@@ -40,9 +40,9 @@ function toArray( obj ) {
40
var out;
41
var i;
42
keys = objectKeys( obj );
43
- out = new Array( keys.length );
+ out = [];
44
for ( i = 0; i < keys.length; i++ ) {
45
- out[ i ] = obj[ keys[i] ];
+ out.push( obj[ keys[ i ] ] );
46
}
47
return out;
48
@@ -78,9 +78,9 @@ function pipeline( opts, clbk ) {
78
if ( error ) {
79
return done( error );
80
81
- usernames = new Array( data.length );
+ usernames = [];
82
for ( i = 0; i < data.length; i++ ) {
83
- usernames[ i ] = data[ i ].login;
+ usernames.push( data[ i ].login );
84
85
options = {
86
'useragent': opts.useragent,
0 commit comments