- mapObj<TItem, TOut>(obj, mapVal, mapKey): Record<string, NonNullable<TOut>>
Parameters
- obj: Record<string, TItem>
- mapVal: ((val: TItem, key: string) => undefined | TOut)
- (val, key): undefined | TOut
Returns undefined | TOut
- mapKey: ((val: TItem, key: string) => undefined | string)
- (val, key): undefined | string
Returns undefined | string
Returns Record<string, NonNullable<TOut>>
- mapObj<TItem, TOut>(obj, mapVal): Record<string, NonNullable<TOut>>
Parameters
- obj: Record<string, TItem>
- mapVal: ((val: TItem, key: string) => undefined | TOut)
- (val, key): undefined | TOut
Returns undefined | TOut
Returns Record<string, NonNullable<TOut>>
Map an object to a new object. Filters out null values