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

discard

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

Sink for observables that discards all values. Useful to leave at the end of a chain.

function discard<T>(f?: (v: T) => void);
§
discard<T>(f?: (v: T) => void)
[src]

§Type Parameters

§Parameters

§
f?: (v: T) => void optional
[src]