blob: ac3f529d299773381d6f733351cd6234a7ce5d9b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
var _Symbol$iterator = require("../core-js/symbol/iterator");
var _Symbol = require("../core-js/symbol");
function _asyncIterator(iterable) {
var method;
if (typeof _Symbol === "function") {
if (_Symbol.asyncIterator) {
method = iterable[_Symbol.asyncIterator];
if (method != null) return method.call(iterable);
}
if (_Symbol$iterator) {
method = iterable[_Symbol$iterator];
if (method != null) return method.call(iterable);
}
}
throw new TypeError("Object is not async iterable");
}
module.exports = _asyncIterator;
|