Function isWhitespace

  • Returns a boolean value denoting whether the input char (or first index of the input string) is whitespace

    Example

    Returns true

    isWhitespace(" ");
    

    Example

    Returns true

    isWhitespace(" foo");
    

    Example

    Returns false

    isWhitespace("f");
    

    Parameters

    • str: string

    Returns boolean

Generated using TypeDoc