UNPKG

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