1 | ;
|
2 | // https://github.com/tc39/proposal-iterator-helpers
|
3 | var $ = require('../internals/export');
|
4 | var iterate = require('../internals/iterate');
|
5 | var anObject = require('../internals/an-object');
|
6 |
|
7 | $({ target: 'Iterator', proto: true, real: true }, {
|
8 | forEach: function forEach(fn) {
|
9 | iterate(anObject(this), fn, undefined, false, true);
|
10 | }
|
11 | });
|