Skip to content

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.

ParameterTypeDescription
textstringThe document.

string[]

Its lines, at least one.