UNPKG

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