lib/utils/promiseUtils/map.js
function promiseMap(items, mapper, opt) {
  switch (items.length) {
    case 0:
      return mapZero();
    case 1:
      return mapOne(items, mapper);
    default:
      return mapMany(items, mapper, opt);
  }
}
function promiseMap(items, mapper, opt) {
  switch (items.length) {
    case 0:
      return mapZero();
    case 1:
      return mapOne(items, mapper);
    default:
      return mapMany(items, mapper, opt);
  }
}
function promiseMap ( items , mapper , opt ) { switch ( items . length ) { case 0 : return mapZero ( ) ; case 1 : return mapOne ( items , mapper ) ; default : return mapMany ( items , mapper , opt ) ; } }
Works like Bluebird.map.
Works like Bluebird . map .