Function isBoolean

  • returns true if the given string contains a true or false

    Parameters

    • str: string

      the string to be tested

    Returns boolean

    true if the string is either true or false