@wtasnorg/node-lib / linesString
linesString(
s):Generator<string,void,unknown>
Defined in: src/strings.ts:634
Lines returns an iterator over the newline-terminated lines in the string s. The lines yielded by the iterator include their terminating newlines. If s is empty, the iterator yields no lines at all. If s does not end in a newline, the final non-empty line of s is yielded without a terminating newline.
string
Input string.
Generator<string, void, unknown>
Iterator over lines.