dict-utils

Home > dict-utils > IReducerFn

IReducerFn type

Reducer function T - item type, of the collection being reduced R - reduced value

Signature:

export declare type IReducerFn<T, R> = (
accumulator: R, 
collectionItem: T, 
key: string | number, 
from: Dict<T>) => R;