Function containsWhitespace

  • Returns a boolean value denoting whether the input string contains any whitespace

    Example

    Returns true

    containsWhitespace("foo bar");
    

    Example

    Returns false

    containsWhitespace("foo");
    

    Parameters

    • str: string

    Returns boolean

Generated using TypeDoc