True Myth / result / isInstance
Function: isInstance()
Call Signature
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
Result
<T
, E
>
The item to check.
Returns
item is Result<T, E>
Call Signature
isInstance(
item
):item is Result<unknown, unknown>
Determine whether an item is an instance of Result
.
Parameters
item
unknown
The item to check.
Returns
item is Result<unknown, unknown>