@tempots/std

textToLines() function

Returns an array of string split by line breaks.

Signature:

textToLines: (s: string) => string[]

Parameters

Parameter

Type

Description

s

string

The string to split.

Returns: string[]

An array of lines.