any.js 591 B

1234567891011121314151617
  1. 'use strict';
  2. require('../../modules/es.aggregate-error');
  3. require('../../modules/es.array.iterator');
  4. require('../../modules/es.object.to-string');
  5. require('../../modules/es.promise');
  6. require('../../modules/es.promise.any');
  7. require('../../modules/es.string.iterator');
  8. var call = require('../../internals/function-call');
  9. var isCallable = require('../../internals/is-callable');
  10. var path = require('../../internals/path');
  11. var Promise = path.Promise;
  12. var $any = Promise.any;
  13. module.exports = function any(iterable) {
  14. return call($any, isCallable(this) ? this : Promise, iterable);
  15. };