dict-utils

Home > dict-utils

dict-utils package

Utilities for working with simple JS and TS dictionaries

Functions

Function Description
dictFilter(from, filter)  
dictFilter(from, filter)  
dictForEach(from, callback)  
dictMap(from, transform)  
dictReduce(from, reducer, initialVal) Iterate over a dictionary to incrementally create a single value

Type Aliases

Type Alias Description
Dict  
IReducerFn Reducer function T - item type, of the collection being reduced R - reduced value
ITransformerFn Transformer function