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