isResult<
T
,E
>(result
):result is Result<T, E>
Defined in: functions/is-result.ts:25
Type guard to check if a value is a Result.
T
The type of the success value.
E
The type of the error value.
unknown
The value to check.
result is Result<T, E>
true
if the value is a Result, otherwise false
.