Function strTrimLines

  • Trims leading and trailing whitespace from each line in a string.

    Parameters

    • string: string

      The string to trim.

    Returns string

    Example

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

Generated using TypeDoc