Validates the state of a boolean.
The returned validator throws an error immediately if a validation fails.
the type the value
the value
the name of the value
validator for the value
TypeError if name is undefined or null
name
undefined
null
RangeError if name is empty
Validates the state of a boolean.
The returned validator throws an error immediately if a validation fails.