Skip to content

isBoolean

isBoolean(value): value is boolean

Type guard to check if a value is a boolean

ParameterTypeDescription
valueunknownThe value to check

value is boolean

true if value is a boolean