code: function promiseMap(items, mapper, opt) {
    switch (items.length) {
      case 0:
        return mapZero();
      case 1:
        return mapOne(items, mapper);
      default:
        return mapMany(items, mapper, opt);
    }
  }
docs: Works like Bluebird.map.