We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4dc98c2 commit e1bf895Copy full SHA for e1bf895
files/en-us/web/api/fetch_api/using_fetch/index.md
@@ -503,7 +503,7 @@ async function* makeTextFileLineIterator(fileURL) {
503
const result = newline.exec(chunk);
504
if (!result) {
505
if (readerDone) break;
506
- const remainder = chunk.substr(startIndex);
+ const remainder = chunk.slice(startIndex);
507
({ value: chunk, done: readerDone } = await reader.read());
508
chunk = remainder + (chunk || "");
509
startIndex = newline.lastIndex = 0;
0 commit comments