const fruits = {
apple: 2,
orange: 3,
grape: 4,
banana: 5
}
I would like to modify some of the values of fruits where I also have access to its current value.
Something like this
const premiumFrutis = _.doSomething(fruits, apple + 2, banana + 3)
// premiumFrutis = {
// apple: 4,
// orange: 3,
// grape: 4,
// banana: 8
// }