UNPKG

414 BJavaScriptView Raw
1import { canUseAsyncIteratorSymbol } from "../../../utilities/index.js";
2export default function readerIterator(reader) {
3 var iterator = {
4 next: function () {
5 return reader.read();
6 },
7 };
8 if (canUseAsyncIteratorSymbol) {
9 iterator[Symbol.asyncIterator] = function () {
10 return this;
11 };
12 }
13 return iterator;
14}
15//# sourceMappingURL=reader.js.map
\No newline at end of file