UNPKG

type-plus

Version:
7 lines 391 B
import type { KeyTypes } from './KeyTypes.js'; export declare function reduceByKey<S extends Record<KeyTypes, any>, T>(subject: S, callbackfn: (previousValue: T, key: keyof S, currentIndex: number, array: string[], subject: S) => T, initialValue: T): T; /** * @deprecated renamed to reduceByKey */ export declare const reduceKey: typeof reduceByKey; //# sourceMappingURL=reduceKey.d.ts.map