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