"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = allSettled;

function _promiseToResultObject() {
  const data = _interopRequireDefault(require("./promise-to-result-object"));

  _promiseToResultObject = function () {
    return data;
  };

  return data;
}

// $FlowFixMe
function allSettled(promises) {
  return Promise.all(promises.map((0, _promiseToResultObject().default)()));
}