lib/index.js
function map(ary, each, done) {
  var result = new Array(ary.length);
  var next = after(ary.length, done);

  for (var i = 0; i < ary.length; i++) {
    each(ary[i], function(error, msg) {
      result[i] = msg;
      next(error, result);
    });
  }
}
function map(ary, each, done) {
  var result = new Array(ary.length);
  var next = after(ary.length, done);

  for (var i = 0; i < ary.length; i++) {
    each(ary[i], function(error, msg) {
      result[i] = msg;
      next(error, result);
    });
  }
}
function map ( ary , each , done ) { var result = new Array ( ary . length ) ; var next = after ( ary . length , done ) ; for ( var i = 0 ; i < ary . length ; i ++ ) { each ( ary [ i ] , function ( error , msg ) { result [ i ] = msg ; next ( error , result ) ; } ) ; } }
Async array map using after
Async array map using after