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