Function strNoConsecutiveEmptyLines

  • Removes consecutive empty lines from a given string.

    Parameters

    • code: string

      The string from which to remove consecutive empty lines.

    Returns string

    Example

    strNoConsecutiveEmptyLines("Hello\n\n\nWorld");;
    //=> "Hello\n\nWorld"

Generated using TypeDoc