dict-utils

Home > dict-utils > dictMap

dictMap() function

Signature:

export declare function dictMap<T, S>(from: Dict<T>, transform: (val: T, key: string | number, from: Dict<T>) => S): Dict<S>;

Parameters

Parameter Type Description
from Dict<T>  
transform (val: T, key: string | number, from: Dict<T>) => S  

Returns:

Dict<S>