PageRenderTime 14ms CodeModel.GetById 11ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/node_modules/babel-polyfill/node_modules/core-js/library/modules/core.is-iterable.js

https://bitbucket.org/worklabschd/bingle_customer2
JavaScript | 10 lines | 9 code | 0 blank | 1 comment | 2 complexity | f8f092d75af9a800b6b36aaefa3023a7 MD5 | raw file
 1var classof = require('./_classof');
 2var ITERATOR = require('./_wks')('iterator');
 3var Iterators = require('./_iterators');
 4module.exports = require('./_core').isIterable = function (it) {
 5  var O = Object(it);
 6  return O[ITERATOR] !== undefined
 7    || '@@iterator' in O
 8    // eslint-disable-next-line no-prototype-builtins
 9    || Iterators.hasOwnProperty(classof(O));
10};