Returns a new object with the same keys as the input object, but with the values mapped using the provided function.
mapObjectValues({ a: 1, b: 2 }, value => value * 2) // { a: 2, b: 4 } Copy
mapObjectValues({ a: 1, b: 2 }, value => value * 2) // { a: 2, b: 4 }
The input object to map.
A function that maps the values of the object.
A new object with the mapped values.
Returns a new object with the same keys as the input object, but with the values mapped using the provided function.
Example