source: trip-planner-front/node_modules/core-js/internals/is-iterable.js

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: 434 bytes
Line 
1var classof = require('../internals/classof');
2var wellKnownSymbol = require('../internals/well-known-symbol');
3var Iterators = require('../internals/iterators');
4
5var ITERATOR = wellKnownSymbol('iterator');
6
7module.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.