Welshman Docs / @welshman/lib / mapVals
Function: mapVals() ​
mapVals<
V,U>(f,x):Record<string,U>
Defined in: packages/lib/src/Tools.ts:882
Creates new object with transformed values
Type Parameters ​
V ​
V
U ​
U
Parameters ​
f ​
(v) => U
Function to transform values
x ​
Record<string, V>
Source object
Returns ​
Record<string, U>
Object with transformed values