Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
356 bytes
|
Line | |
---|
1 | 'use strict';
|
---|
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, { IS_ITERATOR: true });
|
---|
10 | }
|
---|
11 | });
|
---|
Note:
See
TracBrowser
for help on using the repository browser.