Last change
on this file since 1ad8e64 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
434 bytes
|
Line | |
---|
1 | var classof = require('../internals/classof');
|
---|
2 | var wellKnownSymbol = require('../internals/well-known-symbol');
|
---|
3 | var Iterators = require('../internals/iterators');
|
---|
4 |
|
---|
5 | var ITERATOR = wellKnownSymbol('iterator');
|
---|
6 |
|
---|
7 | module.exports = function (it) {
|
---|
8 | var O = Object(it);
|
---|
9 | return O[ITERATOR] !== undefined
|
---|
10 | || '@@iterator' in O
|
---|
11 | // eslint-disable-next-line no-prototype-builtins -- safe
|
---|
12 | || Iterators.hasOwnProperty(classof(O));
|
---|
13 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.