PageRenderTime 19ms CodeModel.GetById 12ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/node_modules/babel-polyfill/node_modules/core-js/library/modules/_is-array-iter.js

https://bitbucket.org/worklabschd/bingle_customer2
JavaScript | 8 lines | 6 code | 1 blank | 1 comment | 2 complexity | 22dfb8e252ec63320160fd31deb3ccaf MD5 | raw file
1// check on default Array iterator
2var Iterators = require('./_iterators');
3var ITERATOR = require('./_wks')('iterator');
4var ArrayProto = Array.prototype;
5
6module.exports = function (it) {
7  return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
8};