blob: f07cc5aab6d5286bf82b69b7e2b9dc049047a599 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import _Symbol$iterator from "../../core-js/symbol/iterator";
import _Symbol from "../../core-js/symbol";
export default 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");
}
|