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:
343 bytes
|
Line | |
---|
1 | var classof = require('../internals/classof');
|
---|
2 | var Iterators = require('../internals/iterators');
|
---|
3 | var wellKnownSymbol = require('../internals/well-known-symbol');
|
---|
4 |
|
---|
5 | var ITERATOR = wellKnownSymbol('iterator');
|
---|
6 |
|
---|
7 | module.exports = function (it) {
|
---|
8 | if (it != undefined) return it[ITERATOR]
|
---|
9 | || it['@@iterator']
|
---|
10 | || Iterators[classof(it)];
|
---|
11 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.