Skip to main content
Module

x/asynciter/for-each.ts>forEach

Map, filter, reduce for AsyncIterables in Deno.
Go to Latest
function forEach
import { forEach } from "https://deno.land/x/asynciter@0.0.16/for-each.ts";

Perform an operation for each item in the sequence.

Parameters

iterable: AsyncIterable<T>

The forEach function.

forEachFn: (item: T) => void | Promise<void>

Returns

Promise<void>