ZygoseithertoUnionOn this pagetoUnion() toUnion<E, A>(fa): E | A Converts an Either to a union type. Type Parametersβ E: Eβ The error type. A: Aβ The success type. Parametersβ fa: Either<E, A>β The Either to convert. Returns: E | Aβ The Left or Right value. Sinceβ 2.0.0