UNPKG

184 BTypeScriptView Raw
1import { ObjectType } from './types';
2declare const reduce: <T, G>(arr: G[] | ObjectType<T>, fn: (result: T, data: G, idx: string | number) => T, init: T) => T;
3export default reduce;