Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rimbu/core/mod.ts>AsyncReducer.equals

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
function AsyncReducer.equals
import { AsyncReducer } from "https://deno.land/x/rimbu@1.2.0/core/mod.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

  • 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