better-returns
    Preparing search index...

    Function or

    • Returns the first Ok result from two Result inputs. If the left result is Ok, it is returned. Otherwise, the right result is returned. This is useful for providing a fallback successful result.

      Type Parameters

      • T

        The type of the successful value.

      • E

        The type of the error value.

      Parameters

      Returns Result<T, E>

      The left result if it's Ok, otherwise the right result.