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