Skip to main content
Module

x/ldkit/library/asynciterator.ts>AsyncIterator#forEach

LDkit - Linked Data query toolkit for TypeScript developers
Go to Latest
method AsyncIterator.prototype.forEach
Re-export
import { AsyncIterator } from "https://deno.land/x/ldkit@v0.6.3/library/asynciterator.ts";

Invokes the callback for each remaining item in the iterator. Switches the iterator to flow mode.

Parameters

callback: (item: T) => void

A function that will be called with each item

optional
self: object

The this pointer for the callback