bpms_site/.svn/pristine/fc/fcc91be096982f91ec5cb562e69d7d0527624c99.svn-base
2025-11-02 16:38:49 +03:30

13 lines
483 B
Plaintext

export default function _asyncIterator(iterable) {
var method;
if (typeof Symbol !== "undefined") {
if (Symbol.asyncIterator) method = iterable[Symbol.asyncIterator];
if (method == null && Symbol.iterator) method = iterable[Symbol.iterator];
}
if (method == null) method = iterable["@@asyncIterator"];
if (method == null) method = iterable["@@iterator"];
if (method == null) throw new TypeError("Object is not async iterable");
return method.call(iterable);
}