- mapRecord<K, V, RK, RV>(obj, callback): Record<RK, RV>
Type Parameters
- K extends string | number | symbol
- V
- RK extends string | number | symbol
- RV
Parameters
- obj: Record<K, V>
- callback: ((entry: [K, V]) => [RK, RV])
Returns Record<RK, RV>
new mapped object
Converts object to entries and map's it with provided callback.