Documents for @litert/utils-string
    Preparing search index...

    Function splitIntoLines

    • Split a string by EOL (end of line) characters.

      Parameters

      • str: string

        The string to split

      • eol: string | RegExp = ...

        The EOL regex to use for splitting the string. Default is RegExp('\r\n|\r|\n')

      Returns string[]

      An array of strings, each representing a line in the original string