Skip to content

hap-fluent / isBoolean

Function: isBoolean()

ts
function isBoolean(value): value is boolean;

Defined in: packages/hap-fluent/src/type-guards.ts:126

Determine whether value is a boolean.

Parameters

ParameterTypeDescription
valueunknownValue to test.

Returns

value is boolean

true if typeof value === 'boolean'.

Released under the Apache-2.0 License.