Skip to content

Home > @jview/utils > isUndefOrNull

isUndefOrNull() function

是否是 undefined 或 null 类型

Signature:

typescript
export declare function isUndefOrNull(val: unknown): val is undefined | null;
export declare function isUndefOrNull(val: unknown): val is undefined | null;

Parameters

ParameterTypeDescription
valunknown

Returns:

val is undefined | null