diff --git a/lib/node_modules/@stdlib/_tools/remark/plugins/remark-run-javascript-examples/lib/index.js b/lib/node_modules/@stdlib/_tools/remark/plugins/remark-run-javascript-examples/lib/index.js index e85c8a843556..6f3b20f80f2d 100644 --- a/lib/node_modules/@stdlib/_tools/remark/plugins/remark-run-javascript-examples/lib/index.js +++ b/lib/node_modules/@stdlib/_tools/remark/plugins/remark-run-javascript-examples/lib/index.js @@ -25,7 +25,6 @@ * * @example * var remark = require( 'remark' ); -* var run = require( '@stdlib/_tools/remark/plugins/remark-run-javascript-examples' ); * * var str = [ * '
', @@ -59,16 +58,28 @@ * '' * ]; * -* remark().use( run ).process( str.join( '\n' ), done ); -* // => 'HELLO WORLD' +* var run = require( '@stdlib/_tools/remark/plugins/remark-run-javascript-examples' ); * -* function done( error ) { -* if ( error ) { -* throw error; -* } -* } +* run; +* // => function attacher( options ) { +* // var opts; +* // var err; +* // +* // // Set default options: +* // opts = copy( defaults ); +* // +* // // NOTE: cannot use `arguments.length` check, as `options` may be explicitly passed as `undefined` +* // if ( options !== void 0 ) { +* // err = validate( opts, options ); +* // if ( err ) { +* // throw err; +* // } +* // } +* // return runner( opts ); +* // } */ + // MODULES // var main = require( './main.js' ); diff --git a/lib/node_modules/@stdlib/math/strided/special/cbrt-by/test/test.main.js b/lib/node_modules/@stdlib/math/strided/special/cbrt-by/test/test.main.js index 3731585c663e..88d8fc6c6f88 100644 --- a/lib/node_modules/@stdlib/math/strided/special/cbrt-by/test/test.main.js +++ b/lib/node_modules/@stdlib/math/strided/special/cbrt-by/test/test.main.js @@ -74,7 +74,8 @@ tape( 'the function computes the cube root of each indexed strided array element cbrtBy( x.length, x, 1, y, 1, accessor ); t.deepEqual( y, expected, 'deep equal' ); - x = new Array( 5 ); // sparse array + x = []; + x.length = 5; // sparse array y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ]; expected = [ 0.0, 0.0, 0.0, 0.0, 0.0 ]; @@ -82,7 +83,8 @@ tape( 'the function computes the cube root of each indexed strided array element cbrtBy( x.length, x, 1, y, 1, accessor ); t.deepEqual( y, expected, 'deep equal' ); - x = new Array( 5 ); // sparse array + x = []; + x.length = 5; // sparse array x[ 2 ] = rand(); y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];