This site describes solve-engine as it is on main: 2.43.0, which npm does not have yet. npm installs 2.40.0, so a page may show an answer that version does not give yet.
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.