_is-array-iter.js 287 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 // check on default Array iterator var Iterators = require('./_iterators'); var ITERATOR = require('./_wks')('iterator'); var ArrayProto = Array.prototype; module.exports = function (it) { return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it); };