Pacote
    Preparing search index...

    Function getOrElse

    • Returns the value contained in the result.

      Type Parameters

      • T
      • E

      Parameters

      • fn: (err: E) => T

        Function to evaluate if the result is an error.

      Returns (result: Result<T, E>) => T

      If the result is Err, it evaluates the provided function for an alternative.