github-pages-deploy-action/node_modules/core-js-pure/internals/get-iterator-method.js
2020-03-06 22:45:40 -05:00

12 lines
343 B
JavaScript

var classof = require('../internals/classof');
var Iterators = require('../internals/iterators');
var wellKnownSymbol = require('../internals/well-known-symbol');
var ITERATOR = wellKnownSymbol('iterator');
module.exports = function (it) {
if (it != undefined) return it[ITERATOR]
|| it['@@iterator']
|| Iterators[classof(it)];
};