diff --git a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-list-item-bullet-indent/lib/main.js b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-list-item-bullet-indent/lib/main.js index bd849f43b15c..7ae4e113e0f6 100644 --- a/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-list-item-bullet-indent/lib/main.js +++ b/lib/node_modules/@stdlib/_tools/eslint/rules/jsdoc-list-item-bullet-indent/lib/main.js @@ -39,6 +39,26 @@ var rule; // FUNCTIONS // +/** +* Copies AST node location info. +* +* @private +* @param {Object} loc - AST node location +* @returns {Object} copied location info +*/ +function copyLocationInfo( loc ) { + return { + 'start': { + 'line': loc.start.line, + 'column': loc.start.column + }, + 'end': { + 'line': loc.end.line, + 'column': loc.end.column + } + }; +} + /** * Rule to prevent unnecessary indentation of Markdown list item bullets in JSDoc descriptions. * @@ -112,26 +132,6 @@ function main( context ) { } } - /** - * Copies AST node location info. - * - * @private - * @param {Object} loc - AST node location - * @returns {Object} copied location info - */ - function copyLocationInfo( loc ) { - return { - 'start': { - 'line': loc.start.line, - 'column': loc.start.column - }, - 'end': { - 'line': loc.end.line, - 'column': loc.end.column - } - }; - } - /** * Reports an error message. * diff --git a/lib/node_modules/@stdlib/repl/presentation/lib/commands/last_fragment.js b/lib/node_modules/@stdlib/repl/presentation/lib/commands/last_fragment.js index 73edc2eb709c..f75d069bdad2 100644 --- a/lib/node_modules/@stdlib/repl/presentation/lib/commands/last_fragment.js +++ b/lib/node_modules/@stdlib/repl/presentation/lib/commands/last_fragment.js @@ -30,6 +30,15 @@ function command( pres ) { return onCommand; + /** + * Callback invoked upon a `drain` event. + * + * @private + */ + function onDrain() { + pres.lastFragment().show(); + } + /** * Jumps to the last fragment of the current slide. * @@ -37,15 +46,6 @@ function command( pres ) { */ function onCommand() { pres._repl.once( 'drain', onDrain ); // eslint-disable-line no-underscore-dangle - - /** - * Callback invoked upon a `drain` event. - * - * @private - */ - function onDrain() { - pres.lastFragment().show(); - } } } diff --git a/lib/node_modules/@stdlib/utils/timeit/lib/main.js b/lib/node_modules/@stdlib/utils/timeit/lib/main.js index d01fa47ac075..8fff2e200277 100644 --- a/lib/node_modules/@stdlib/utils/timeit/lib/main.js +++ b/lib/node_modules/@stdlib/utils/timeit/lib/main.js @@ -27,6 +27,7 @@ var copy = require( '@stdlib/utils/copy' ); var cwd = require( '@stdlib/process/cwd' ); var format = require( '@stdlib/string/format' ); var nextTick = require( '@stdlib/utils/next-tick' ); +var nulls = require( '@stdlib/array/base/nulls' ); var defaults = require( './defaults.json' ); var validate = require( './validate.js' ); var evaluate = require( './vm_evaluate.js' ); @@ -100,7 +101,7 @@ function timeit( code, options, clbk ) { if ( !isFunction( cb ) ) { throw new TypeError( format( 'invalid argument. Callback argument must be a function. Value: `%s`.', cb ) ); } - results = new Array( opts.repeats ); + results = nulls( opts.repeats ); dir = cwd(); idx = 0;