prefixLines
prefixLines(
text,prefix,options?):string[]
Defined in: packages/core/src/string/prefix-lines.ts:22
Prefix each line of the given text with the given prefix.
If the text is an array of strings, each string will be resplit into lines (if necessary).
Parameters
Section titled “Parameters”string | string[]
The text to prefix
prefix
Section titled “prefix”string
The prefix to add to each line
options?
Section titled “options?”Options for prefixing lines
Returns
Section titled “Returns”string[]
The prefixed text