Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: fix JavaScript lint errors (issue #6704) #8080

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
rajanarahul93 wants to merge 1 commit into stdlib-js:develop
base: develop
Choose a base branch
Loading
from rajanarahul93:fix-doctest-inmap-6704
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 15 additions & 22 deletions lib/node_modules/@stdlib/utils/async/inmap/lib/main.js
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -48,35 +48,28 @@ var factory = require( './factory.js' );
* @returns {void}
*
* @example
* var readFile = require( '@stdlib/fs/read-file' );
* var nextTick = require( '@stdlib/utils/next-tick' );
* var inmapAsync = require( '@stdlib/utils/async/inmap' );
*
* function done( error, results ) {
* if ( error ) {
* throw error;
* }
* console.log( results );
* }
* var arr = [ 1, 2, 3, 4 ];
*
* function read( file, next ) {
* var opts = {
* 'encoding': 'utf8'
* };
* readFile( file, opts, onFile );
* function iterator( val, next ) {
* nextTick( cb );
* function cb() {
* // Return the value multiplied by 2...
* next( null, val*2 );
* }
* }
*
* function onFile( error, data ) {
* function done( error, result ) {
* if ( error ) {
* return next( error );
* throw error;
* }
* next( null, data );
* }
* console.log( result );
* // => [ 2, 4, 6, 8 ]
* }
*
* var files = [
* './beep.js',
* './boop.js'
* ];
*
* inmapAsync( files, read, done );
* inmapAsync( arr, iterator, done );
*/
function inmapAsync( collection, options, fcn, done ) {
if ( arguments.length < 4 ) {
Expand Down

AltStyle によって変換されたページ (->オリジナル) /