UNPKG

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