async function* readLines(
  reader,
) {
  for await (let chunk of readStringDelim(reader, "\n")) {
    // Finding a CR at the end of the line is evidence of a
    // "\r\n" at the end of the line. The "\r" part should be
    // removed too.
    if (chunk.endsWith("\r")) {
      chunk = chunk.slice(0, -1);
    }
    yield chunk;
  }
}
/** Read strings line-by-line from a Reader. */
Read strings line-by-line from a Reader.
Read strings line - by - line from a Reader .
async function* readLines(
  reader,
) {
  for await (let chunk of readStringDelim(reader, "\n")) {
    if (chunk.endsWith("\r")) {
      chunk = chunk.slice(0, -1);
    }
    yield chunk;
  }
}
async function * readLines ( reader , ) { for await ( let chunk of readStringDelim ( reader , "\n" ) ) { if ( chunk . endsWith ( "\r" ) ) { chunk = chunk . slice ( 0 , - 1 ) ; } yield chunk ; } }
Read strings line-by-line from a Reader.
Read strings line - by - line from a Reader .
// Finding a CR at the end of the line is evidence of a // "\r\n" at the end of the line. The "\r" part should be // removed too.