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.
1 parent 26f5797 commit 653a7a0Copy full SHA for 653a7a0
lib/node_modules/@stdlib/datasets/sotu/scripts/build.js
@@ -521,7 +521,7 @@ function datapackage( files ) {
521
522
re = /[_.]/g;
523
524
- arr = new Array( files.length );
+ arr = [];
525
for ( i = 0; i < files.length; i++ ) {
526
ext = extname( files[ i ] );
527
parts = files[ i ].match( RE );
@@ -544,7 +544,7 @@ function datapackage( files ) {
544
obj.format = 'json';
545
obj.mediatype = 'application/json';
546
}
547
- arr[ i ] = obj;
+ arr.push( obj );
548
549
pkg.resources = arr;
550
pkg = JSON.stringify( pkg, null, ' ' );
0 commit comments