github-pages-deploy-action/node_modules/core-js-pure/internals/get-iterator-method.js

12 lines
343 B
JavaScript
Raw Normal View History

2020-03-07 11:45:40 +08:00
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)];
};