UNPKG

rc-js-util

Version:

A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.

9 lines 357 B
/** * @public * Like `Array.reduce` but without the requirement to return the value in the callback. * * @remarks * See {@link arrayCollect}. */ export declare function arrayCollect<TRet, TItem>(items: ArrayLike<TItem>, collected: TRet, collect: (collected: TRet, item: TItem, index: number) => void): TRet; //# sourceMappingURL=array-collect.d.ts.map