Skip to content

True Myth / maybe / isInstance

Function: isInstance() ​

Call Signature ​

isInstance<T>(item): item is Maybe<T>

Determine whether an item is an instance of Maybe.

Type Parameters ​

T ​

T extends object

Parameters ​

item ​

Maybe<T>

The item to check.

Returns ​

item is Maybe<T>

Call Signature ​

isInstance(item): item is Maybe<{}>

Determine whether an item is an instance of Maybe.

Parameters ​

item ​

unknown

The item to check.

Returns ​

item is Maybe<{}>