import { AsyncReducer } from "https://deno.land/x/rimbu@1.2.0/stream/async/async-reducer.ts";
const { equals } = AsyncReducer;
Returns an AsyncReducer
that ouputs true when the received elements match the given other
async stream source according to the eq
instance, false otherwise.
Parameters
other: AsyncStreamSource<T>
- an async stream source containg elements to match against
optional
options: { eq?: Eq<T> | undefined; negate?: boolean | undefined; } = [UNSUPPORTED]- (optional) an object containing the following properties:
- eq: (default: Eq.objectIs) the
Eq
instance to use to compare elements - negate: (default: false) when true will invert the given predicate