@mikuroxina/mini-fn
    Preparing search index...

    Function mapOrElse

    • Applies fn to the contained success value, or returns the fallback value by fallback if it is an Err.

      Type Parameters

      • E
      • U

      Parameters

      • fallback: (err: E) => U

        The function to provide a fallback value.

      Returns <T>(fn: (t: T) => U) => (res: Result.Result<E, T>) => U

      The mapped value.