UNPKG

375 BJavaScriptView Raw
1'use strict';
2var wellKnownSymbol = require('../internals/well-known-symbol');
3var Iterators = require('../internals/iterators');
4
5var ITERATOR = wellKnownSymbol('iterator');
6var ArrayPrototype = Array.prototype;
7
8// check on default Array iterator
9module.exports = function (it) {
10 return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it);
11};