Skip to main content

elem()

elem<A>(E): (a) => <Err>(ma) => boolean

Tests if a value is equal to the Right value using an Eq instance.


Type Parameters​

A: A​

The success type.


Parameters​

E: #### equals: (a, b) => boolean​

The Eq instance.


Returns​

A curried function that tests equality.

Type Parameters​

Err: Err​

ma: Either<Err, A>
Returns: boolean


Since​

2.0.0