GuobaGuoba Utils

isUndef

@guoba-ai/utils / guard / isUndef

Function: isUndef()

function isUndef(val): val is undefined;

Defined in: guard.ts:105

Check if a value is undefined.

Parameters

val

unknown

The value to check

Returns

val is undefined

true if the value is undefined

Example

isUndef(undefined) // true
isUndef(null) // false

On this page