any.js 455 B

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