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