isBoolean
Verifies if provided Verificable
represents a boolean value. Only boolean values (true
, false
) are matching, meaning that 'truthy'/'falsey' values are not matching this Predicate
.
Possible errors:
If provided Verificable
is not a boolean:
Verificable
is not a boolean:Examples:
Each of examples uses this import statement:
Null or undefined is not considered a boolean:
String value is not considered a boolean as well:
true
and false
are considered boolean values:
true
and false
are considered boolean values:Last updated