esnext.async-iterator.find.js 358 B

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