• Returns true if the given string is either empty or contains only whitespace.

    Parameters

    • str: string

      The string to check.

    Returns boolean

    true if the given string is either empty or contains only whitespace.