isBool(val): val is boolean
val
val is boolean
Checks if the provided value is a boolean.
unknown
The value to check.
Returns true if the value is a boolean, false otherwise.