esnext.async-iterator.every.js 364 B

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