Function: isBool()

isBool(val): val is boolean

Checks if the provided value is a boolean.

Parameters

val

unknown

The value to check.

Returns

val is boolean

Returns true if the value is a boolean, false otherwise.