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