Function strTrimLinesRight

  • Trims trailing whitespace from each line in a string.

    Parameters

    • string: string

      The string to trim.

    Returns string

    Example

    strTrimLinesRight('  Hello, world!  \n  How are you?  ');;
    //=> ' Hello, world!\n How are you?'

Generated using TypeDoc