Skip to content

True Myth / maybe / isJust

Function: isJust() ​

isJust<T>(maybe): maybe is Just<T>

Is the Maybe a Just?

Type Parameters ​

T ​

T extends object

The type of the item contained in the Maybe.

Parameters ​

maybe ​

Maybe<T>

The Maybe to check.

Returns ​

maybe is Just<T>

A type guarded Just.