isBoolean
@tsed/core
Usage
typescript
import { isBoolean } from "@tsed/core";Overview
ts
function isBoolean(target: any): target is boolean;Description
Checks if a value is a boolean primitive.
The Boolean constructor and boxed new Boolean() values are not accepted, like {@link isString} and {@link isNumber}. Use {@link isBooleanOrBooleanClass} to accept them.