index-of-newline
    Preparing search index...

    Function default

    • Find indexOf CR, LF, or CRLF

      Parameters

      • string: string

        The search string

      • offset: number = 0

        The offset for searching

      • includeLength: boolean = false

        Include the length in the return value

      Returns number | number[]

      When includeLength is true, returns a pair of [offset, length] to provide the length of CR (1), LF (1) or CRLF (2)