Skip to content

getLineBefore

getLineBefore(text, position): string

Defined in: utils/index.ts:25

Returns the string between the position and the previous \n.

string

number

string