aswi2020vldc-gitlab/templetes/node_modules/@babel/runtime/helpers/asyncIterator.js @ 3a515b92
1 |
function _asyncIterator(iterable) { |
---|---|
2 |
var method; |
3 |
|
4 |
if (typeof Symbol !== "undefined") { |
5 |
if (Symbol.asyncIterator) { |
6 |
method = iterable[Symbol.asyncIterator]; |
7 |
if (method != null) return method.call(iterable); |
8 |
}
|
9 |
|
10 |
if (Symbol.iterator) { |
11 |
method = iterable[Symbol.iterator]; |
12 |
if (method != null) return method.call(iterable); |
13 |
}
|
14 |
}
|
15 |
|
16 |
throw new TypeError("Object is not async iterable"); |
17 |
}
|
18 |
|
19 |
module.exports = _asyncIterator; |