Function strNoConsecutiveWhitespace

  • Removes consecutive whitespace characters in a string and replaces them with a single space.

    Parameters

    • string: string

      The string to be processed.

    Returns string

    Example

    strNoConsecutiveWhitespace('Hello   World');
    //=> 'Hello World'

Generated using TypeDoc