Skip to content

W.mapAsync #19

@rc1

Description

@rc1
function mapAsync ( fnArray, callback ) {
    var acc = [];
    W.loop( fnArray.length, function ( idx, next ) {
        fnArray[ idx ]( function ( result ) {
            acc.push( result );
            next();
        });
    }, function () {
        callback( acc );
    });
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions