Skip to content

True Myth / maybe / isNothing

Function: isNothing()

isNothing<T>(maybe): maybe is Nothing<T>

Is the Maybe a Nothing?

Type Parameters

T

T

The type of the item contained in the Maybe.

Parameters

maybe

Maybe<T>

The Maybe to check.

Returns

maybe is Nothing<T>

A type guarded Nothing.