MrShi
2025-07-18 f650319d7175f764cd5286c383a72d6e6d2e8a87
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);
  }
});