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

    Function mergeOkErr

    • Unwraps the value for the result whose type parameters of are same.

      Type Parameters

      • T

      Parameters

      Returns T

      The contained value.

      Examples

      expect(mergeOkErr(ok(3))).toStrictEqual(3);
      expect(mergeOkErr(err(4))).toStrictEqual(4);