type-plus
Version:
Provides additional types for TypeScript.
7 lines • 391 B
TypeScript
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