Skip to content

Home > @jview/utils > isBool

isBool() function

是否是布尔类型

Signature:

typescript
export declare function isBool(val: unknown): val is boolean;
export declare function isBool(val: unknown): val is boolean;

Parameters

ParameterTypeDescription
valunknown

Returns:

val is boolean