Checks if a Result is Result.Err. Acts as a type guard, narrowing the
type to the error variant.
This function is essential for type-safe Result handling, allowing
TypeScript to understand that subsequent operations will work with the
error value rather than the success value.
Checks if a
Result
isResult.Err
. Acts as a type guard, narrowing the type to the error variant.This function is essential for type-safe Result handling, allowing TypeScript to understand that subsequent operations will work with the error value rather than the success value.