Last change
on this file since ceaed42 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
434 bytes
|
Rev | Line | |
---|
[6a3a178] | 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.