1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-11-13 02:20:18 +00:00
musix-oss/node_modules/core-js/internals/get-async-iterator-method.js
2020-03-03 22:30:50 +02:00

10 lines
326 B
JavaScript

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;
};