What are the different ways to convert the lodash _.mapValues to ES6.
Code:
var fruits= {
'apple': { 'name': 'apple', 'number': 5},
'orange': { 'name': 'orange', 'number': 10 }
};
_.mapValues(fruits, 'number');
Output:
{ 'apple': 5, 'orange': 10 }