GuobaGuoba Utils

isNull

@guoba-ai/utils / guard / isNull

Function: isNull()

function isNull(val): val is null;

Defined in: guard.ts:120

Check if a value is null.

Parameters

val

unknown

The value to check

Returns

val is null

true if the value is null

Example

isNull(null) // true
isNull(undefined) // false

On this page