all-settled.js 346 B

1234567891011
  1. 'use strict';
  2. require('../../modules/es.promise');
  3. require('../../modules/es.promise.all-settled');
  4. var path = require('../../internals/path');
  5. var Promise = path.Promise;
  6. var $allSettled = Promise.allSettled;
  7. module.exports = function allSettled(iterable) {
  8. return $allSettled.call(typeof this === 'function' ? this : Promise, iterable);
  9. };