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

forEach

import { forEach } from "https://raw.githubusercontent.com/surma/observables-with-streams/28c55be6d855780c677fd1f4ba975f4d3144891d/src/transforms/for-each.ts";

Calls a function for each item emitted by an observable without waiting for the function to return to forward the item. Exceptions thrown by the function will be caught and ignored.

function forEach<T>(f: (x: T) => Promise<unknown> | unknown): Transform<T>;
§
forEach<T>(f: (x: T) => Promise<unknown> | unknown): Transform<T>
[src]

§Type Parameters

§Parameters

§
f: (x: T) => Promise<unknown> | unknown
[src]

Function called with each emitted value.

§Return Type

§

Transform that emits the same items as the original observable.