Skip to content

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.

ParameterTypeDescription
textstringThe document.

string[]

Its lines, at least one.