UNPKG

asyncerator

Version:

Provide supporting types for AsyncIterable/AsyncIterableIterators, promisified stream.pipeline implementation, and Array-like utility operators, sources and sinks.

7 lines (6 loc) 268 B
import type { Operator } from './index'; /** * Similar to Array.forEach, call forEachFunction for each value in the stream. * @param forEachFunction */ export default function <Input>(forEachFunction: (value: Input, index: number) => void): Operator<Input, Input>;