mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-10 23:51:06 +03:30
17 lines
439 B
JavaScript
Vendored
17 lines
439 B
JavaScript
Vendored
export default function _asyncIterator(iterable) {
|
|
var method;
|
|
|
|
if (typeof Symbol !== "undefined") {
|
|
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");
|
|
} |