Skip to content

True Myth / result / isInstance

Function: isInstance()

isInstance<T, E>(item): item is Result<T, E>

Determine whether an item is an instance of Result.

Type Parameters

T

T

E

E

Parameters

item

unknown

The item to check.

Returns

item is Result<T, E>