All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.internals.is-array-iterator-method.js Maven / Gradle / Ivy

The newest version!
'use strict';
var wellKnownSymbol = require('../internals/well-known-symbol');
var Iterators = require('../internals/iterators');

var ITERATOR = wellKnownSymbol('iterator');
var ArrayPrototype = Array.prototype;

// check on default Array iterator
module.exports = function (it) {
  return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it);
};




© 2015 - 2024 Weber Informatics LLC | Privacy Policy