function arrayToPromise(obj) {
  return Promise.all(obj.map(toPromise, this));
}
Convert an array of "yieldables" to a promise.
Uses `Promise.all()` internally.

@param {Array} obj
@return {Promise}
@api private