1 | export default 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 | } |
\ | No newline at end of file |