Skip to content

and

and<A>(eq2): (eq1) => Equality<A>

Defined in: Core/Equality.ts:93

Combines two equalities with logical AND. Both must pass for two values to be considered equal. Data-last: the first equality is the data being piped.

A

Equality<A>

(eq1) => Equality<A>

const exact = pipe(byName, Equality.and(byRole));
exact(userA, userB); // true only if name AND role match