dict-utils

Home > dict-utils > dictFilter

dictFilter() function

Signature:

export declare function dictFilter<T, S extends T>(from: Dict<T>, filter: (val: T, key: string | number, from: Dict<T>) => val is S): Dict<S>;

Parameters

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

Returns:

Dict<S>