isBoolean

function isBoolean(val): val is boolean

Returns true if the specified value is a boolean.

Parameters

ParameterTypeDescription
valunknownVariable to test.

Returns

val is boolean

Whether variable is boolean.