I have a JavaScript object and want to get the highest value of all entries. I have tried this:
d = {
"A": [ {"value": 10}, {"value": 20}, {"value": 30} ],
"B": [ {"value": 50}, {"value": 60}, {"value": 1000} ],
}
Object.keys(d).map(
function(k) {
Math.max.apply(Math, d[k].map(
function(e) {
console.log(value);
}
))
}
)
The result should be 1000.