Skip to content

isBoolean

Checks whether a value is a boolean.

Import:

import { isBoolean } from '@mnaoumov/typescript-lib/type-guards';

Signature:

function isBoolean(value: unknown): boolean

Parameters:

Parameter Type Description
value unknown The value to check.

Returns: boolean — Whether the value is a boolean.