_is-array-iter.js 279 B

12345678
  1. // check on default Array iterator
  2. var Iterators = require('./_iterators');
  3. var ITERATOR = require('./_wks')('iterator');
  4. var ArrayProto = Array.prototype;
  5. module.exports = function (it) {
  6. return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
  7. };