Package: effect
Module: String
Returns an IterableIterator which yields each line contained within the
string as well as the trailing newline character.
Example (Iterating lines with separators)
import { String } from "effect"
const lines = String.linesWithSeparators("hello\nworld\n")
console.log(Array.from(lines)) // ["hello\n", "world\n"]
Signature
declare const linesWithSeparators: (s: string) => LinesIterator
Since v2.0.0