Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

distinct

import { distinct } from "https://raw.githubusercontent.com/surma/observables-with-streams/28c55be6d855780c677fd1f4ba975f4d3144891d/src/index.ts";

Returns a Transform where all subsequent repetitions of the same item are filtered out.

function distinct<T>(f?: (a: T, b: T) => boolean): Transform<T>;
§
distinct<T>(f?: (a: T, b: T) => boolean): Transform<T>
[src]

§Type Parameters

§Parameters

§
f?: (a: T, b: T) => boolean optional
[src]

§Return Type

§

Transform that emits some items from the original observable.