Skip to content

Function: $isNil()

ts
function $isNil(value: unknown): value is Nillable<never>;

Check whether a value is nil-compatible in Lua and Jest runtimes.

Parameters

ParameterTypeDescription
valueunknownValue to check.

Returns

value is Nillable<never>

Whether value is null or undefined.