Sha256: 5d8eaf26f21ed30603997c18ebb796905abdba7c702d558bb3a65c4a6632c9b8
Contents?: true
Size: 524 Bytes
Versions: 26
Compression:
Stored size: 524 Bytes
Contents
import type { PromiseOrValue } from './PromiseOrValue'; /** * Similar to Array.prototype.reduce(), however the reducing callback may return * a Promise, in which case reduction will continue after each promise resolves. * * If the callback does not return a Promise, then this function will also not * return a Promise. */ export declare function promiseReduce<T, U>( values: Iterable<T>, callbackFn: (accumulator: U, currentValue: T) => PromiseOrValue<U>, initialValue: PromiseOrValue<U>, ): PromiseOrValue<U>;
Version data entries
26 entries across 26 versions & 1 rubygems