This site describes solve-engine 2.44.0, the version npm installs.
splitLines
function splitLines(text): string[];Defined in: packages/engine/src/utilities/Strings.ts:36
The lines of a document, without their line breaks.
A CRLF pair is one break, and a break at the very end leaves an empty last
line, as split does and as the document scan does.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
text | string | The document. |
Returns
Section titled “Returns”string[]
Its lines, at least one.