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

    Function mapOr

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

      Type Parameters

      • U

      Parameters

      • init: U

        The default value.

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

      The mapped value.