Creates a new object by applying fn to each value of obj. Keys are preserved.
fn
obj
The source object.
Mapping function receiving each value and key.
mapValues({ a: 1, b: 2 }, v => v * 2) // => { a: 2, b: 4 } Copy
mapValues({ a: 1, b: 2 }, v => v * 2) // => { a: 2, b: 4 }
Creates a new object by applying
fnto each value ofobj. Keys are preserved.