diff --git a/lib/node_modules/@stdlib/_tools/github/org-repos/lib/validate.js b/lib/node_modules/@stdlib/_tools/github/org-repos/lib/validate.js index 6676d503d2ba..627eff876546 100644 --- a/lib/node_modules/@stdlib/_tools/github/org-repos/lib/validate.js +++ b/lib/node_modules/@stdlib/_tools/github/org-repos/lib/validate.js @@ -56,13 +56,13 @@ function validate( opts, options ) { if ( hasOwnProp( options, 'token' ) ) { opts.token = options.token; if ( !isString( opts.token ) ) { - return new TypeError( format( 'invalid option. `%s` option must be a string. Option: `%s`.', 'token', opts.token ) ); + return new TypeError( format( 'invalid option. `%s` option must be a string. Option: `%s`.', 'token', opts.token ) ); } } if ( hasOwnProp( options, 'useragent' ) ) { opts.useragent = options.useragent; if ( !isString( opts.useragent ) ) { - return new TypeError( format( 'invalid option. `%s` option must be a string. Option: `%s`.', 'useragent', opts.useragent ) ); + return new TypeError( format( 'invalid option. `%s` option must be a string. Option: `%s`.', 'useragent', opts.useragent ) ); } } return null; diff --git a/lib/node_modules/@stdlib/constants/float64/pinf/lib/index.js b/lib/node_modules/@stdlib/constants/float64/pinf/lib/index.js index 5759d844b535..8c15c27cee6a 100644 --- a/lib/node_modules/@stdlib/constants/float64/pinf/lib/index.js +++ b/lib/node_modules/@stdlib/constants/float64/pinf/lib/index.js @@ -48,7 +48,7 @@ * @default Number.POSITIVE_INFINITY * @see [IEEE 754]{@link https://en.wikipedia.org/wiki/IEEE_754-1985} */ -var FLOAT64_PINF = Number.POSITIVE_INFINITY; // eslint-disable-line stdlib/require-globals +var FLOAT64_PINF = Number.POSITIVE_INFINITY; // EXPORTS // diff --git a/lib/node_modules/@stdlib/fs/read-dir/examples/index.js b/lib/node_modules/@stdlib/fs/read-dir/examples/index.js index 244a18f2d158..41b102b260a9 100644 --- a/lib/node_modules/@stdlib/fs/read-dir/examples/index.js +++ b/lib/node_modules/@stdlib/fs/read-dir/examples/index.js @@ -32,7 +32,7 @@ out = readDir.sync( 'beepboop' ); // returns console.log( out instanceof Error ); -// => true +// => false /* Async */ diff --git a/lib/node_modules/@stdlib/math/base/tools/evalpoly-compile/examples/index.js b/lib/node_modules/@stdlib/math/base/tools/evalpoly-compile/examples/index.js index 74c2c078cd22..9089582fd50d 100644 --- a/lib/node_modules/@stdlib/math/base/tools/evalpoly-compile/examples/index.js +++ b/lib/node_modules/@stdlib/math/base/tools/evalpoly-compile/examples/index.js @@ -18,11 +18,10 @@ 'use strict'; -var resolve = require( 'path' ).resolve; var discreteUniform = require( '@stdlib/random/array/discrete-uniform' ); var tryRequire = require( '@stdlib/utils/try-require' ); -var compile = tryRequire( resolve( __dirname, '..', 'lib' ) ); +var compile = tryRequire( './../lib' ); if ( compile instanceof Error ) { console.log( 'Unable to run example. Unsupported environment.' ); } else { diff --git a/lib/node_modules/@stdlib/math/base/tools/hermitepoly/test/test.factory.js b/lib/node_modules/@stdlib/math/base/tools/hermitepoly/test/test.factory.js index 13fdd0a5c7db..e18f4681f855 100644 --- a/lib/node_modules/@stdlib/math/base/tools/hermitepoly/test/test.factory.js +++ b/lib/node_modules/@stdlib/math/base/tools/hermitepoly/test/test.factory.js @@ -30,23 +30,18 @@ var factory = require( './../lib' ).factory; // FIXTURES // var random2 = require( './fixtures/python/random2.json' ); - var mediumNegative1 = require( './fixtures/python/medium_negative_1.json' ); var mediumNegative2 = require( './fixtures/python/medium_negative_2.json' ); var mediumNegative5 = require( './fixtures/python/medium_negative_5.json' ); - var mediumPositive1 = require( './fixtures/python/medium_positive_1.json' ); var mediumPositive2 = require( './fixtures/python/medium_positive_2.json' ); var mediumPositive5 = require( './fixtures/python/medium_positive_5.json' ); - var smallPositive1 = require( './fixtures/python/small_positive_1.json' ); var smallPositive2 = require( './fixtures/python/small_positive_2.json' ); var smallPositive5 = require( './fixtures/python/small_positive_5.json' ); - var smallNegative1 = require( './fixtures/python/small_negative_1.json' ); var smallNegative2 = require( './fixtures/python/small_negative_2.json' ); var smallNegative5 = require( './fixtures/python/small_negative_5.json' ); - var tiny1 = require( './fixtures/python/tiny_1.json' ); var tiny2 = require( './fixtures/python/tiny_2.json' ); var tiny5 = require( './fixtures/python/tiny_5.json' ); diff --git a/lib/node_modules/@stdlib/stats/kstest/test/test.marsaglia.js b/lib/node_modules/@stdlib/stats/kstest/test/test.marsaglia.js index a9b4ba1444d7..23b555d30309 100644 --- a/lib/node_modules/@stdlib/stats/kstest/test/test.marsaglia.js +++ b/lib/node_modules/@stdlib/stats/kstest/test/test.marsaglia.js @@ -43,8 +43,30 @@ tape( 'the function correctly evaluates the CDF of D_n', function test( t ) { var n; var i; - d = [ 0.3, -0.1, 1.5, 0.5, 0.1, 0.1, 0.05, 0.05, 0.8, 0.274 ]; - n = [ 10.0, 10.0, 10.0, 20.0, 10.0, 20.0, 300.0, 80.0, 1.0, 10.0 ]; + d = [ + 0.3, + -0.1, + 1.5, + 0.5, + 0.1, + 0.1, + 0.05, + 0.05, + 0.8, + 0.274 + ]; + n = [ + 10.0, + 10.0, + 10.0, + 20.0, + 10.0, + 20.0, + 300.0, + 80.0, + 1.0, + 10.0 + ]; expected = [ 0.7294644, 0.0, diff --git a/lib/node_modules/@stdlib/stats/ztest2/examples/index.js b/lib/node_modules/@stdlib/stats/ztest2/examples/index.js index d49169f4fff5..1fe6f2864496 100644 --- a/lib/node_modules/@stdlib/stats/ztest2/examples/index.js +++ b/lib/node_modules/@stdlib/stats/ztest2/examples/index.js @@ -28,14 +28,14 @@ var y; var i; // Values drawn from a Normal(4,2) distribution -x = new Array( 100 ); +x = []; for ( i = 0; i < 100; i++ ) { - x[ i ] = rnorm( 4.0, 2.0 ); + x.push( rnorm( 4.0, 2.0 ) ); } // Values drawn from a Normal(3,2) distribution -y = new Array( 80 ); +y = []; for ( i = 0; i < 80; i++ ) { - y[ i ] = rnorm( 3.0, 2.0 ); + y.push( rnorm( 3.0, 2.0 ) ); } out = ztest2( x, y, 2.0, 2.0 ); diff --git a/lib/node_modules/@stdlib/utils/async/until/lib/main.js b/lib/node_modules/@stdlib/utils/async/until/lib/main.js index bc849497ab91..a5253d73c6ed 100644 --- a/lib/node_modules/@stdlib/utils/async/until/lib/main.js +++ b/lib/node_modules/@stdlib/utils/async/until/lib/main.js @@ -112,9 +112,9 @@ function untilAsync( predicate, fcn, done, thisArg ) { // Cache the most recent results... if ( arguments.length > 1 ) { - args = new Array( arguments.length-1 ); + args = []; for ( i = 1; i < arguments.length; i++ ) { - args[ i-1 ] = arguments[ i ]; + args.push( arguments[ i ] ); } } // Run the test condition: diff --git a/lib/node_modules/@stdlib/utils/pluck/benchmark/benchmark.js b/lib/node_modules/@stdlib/utils/pluck/benchmark/benchmark.js index 13c6b9a9e374..9b670a103c32 100644 --- a/lib/node_modules/@stdlib/utils/pluck/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/utils/pluck/benchmark/benchmark.js @@ -37,13 +37,13 @@ bench( pkg, function benchmark( b ) { var i; var j; - arr = new Array( 100 ); - for ( i = 0; i < arr.length; i++ ) { - tmp = new Array( 5 ); - for ( j = 0; j < tmp.length; j++ ) { - tmp[ j ] = round( randu()*100.0*(j+1.0) ); + arr = []; + for ( i = 0; i < 100; i++ ) { + tmp = []; + for ( j = 0; j < 5; j++ ) { + tmp.push( round( randu()*100.0*(j+1.0) ) ); } - arr[ i ] = tmp; + arr.push( tmp ); } b.tic(); for ( i = 0; i < b.iterations; i++ ) {