@ac-essentials/misc-util
    Preparing search index...

    Function prefixLines

    • 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

      • text: string | string[]

        The text to prefix

      • prefix: string

        The prefix to add to each line

      • Optionaloptions: PrefixLinesOptions

        Options for prefixing lines

      Returns string[]

      The prefixed text