esnext.async-iterator.some.js 358 B

1234567891011
  1. 'use strict';
  2. var $ = require('../internals/export');
  3. var $some = require('../internals/async-iterator-iteration').some;
  4. // `AsyncIterator.prototype.some` method
  5. // https://github.com/tc39/proposal-async-iterator-helpers
  6. $({ target: 'AsyncIterator', proto: true, real: true }, {
  7. some: function some(predicate) {
  8. return $some(this, predicate);
  9. }
  10. });