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

10 lines
326 B
JavaScript
Raw Normal View History

2020-03-07 11:45:40 +08:00
var getIteratorMethod = require('../internals/get-iterator-method');
var wellKnownSymbol = require('../internals/well-known-symbol');
var ASYNC_ITERATOR = wellKnownSymbol('asyncIterator');
module.exports = function (it) {
var method = it[ASYNC_ITERATOR];
return method === undefined ? getIteratorMethod(it) : method;
};