All Downloads are FREE. Search and download functionalities are using the official Maven repository.

node_modules.core-js.modules.core.is-iterable.js Maven / Gradle / Ivy

There is a newer version: 1.1.2
Show newest version
var classof = require('./_classof');
var ITERATOR = require('./_wks')('iterator');
var Iterators = require('./_iterators');
module.exports = require('./_core').isIterable = function (it) {
  var O = Object(it);
  return O[ITERATOR] !== undefined
    || '@@iterator' in O
    // eslint-disable-next-line no-prototype-builtins
    || Iterators.hasOwnProperty(classof(O));
};




© 2015 - 2024 Weber Informatics LLC | Privacy Policy