any.js 363 B

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