You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
358 B
12 lines
358 B
'use strict';
|
|
var $ = require('../internals/export');
|
|
var $find = require('../internals/async-iterator-iteration').find;
|
|
|
|
// `AsyncIterator.prototype.find` method
|
|
// https://github.com/tc39/proposal-async-iterator-helpers
|
|
$({ target: 'AsyncIterator', proto: true, real: true }, {
|
|
find: function find(predicate) {
|
|
return $find(this, predicate);
|
|
}
|
|
});
|