nimble.match.boolean

nimble.match.boolean(value)

Determine if a value is a boolean value.

Return True if the value is a boolean type, otherwise return False.

Parameters:

value

Returns:

bool

See also

anyTrue, allTrue

Examples

>>> boolean(True)
True
>>> true(1) # False because 1 not boolean type
False
>>> boolean(False)
True
>>> boolean('False')
False