Skip to content

isBooleanOrBooleanClass

@tsed/core

Usage ​

typescript
import { isBooleanOrBooleanClass } from "@tsed/core";

See /packages/core/src/utils/isBoolean.ts.

Overview ​

ts
function isBooleanOrBooleanClass(target: any): target is boolean;

Description ​

Checks if a value is a boolean primitive, Boolean object, or the Boolean constructor.

Released under the MIT License.