esnext.async-iterator.find.js 311 B

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