Temukan Kunci Nilai Tertinggi Dari JavaScript Objek
var obj = {a: 1, b: 2, undefined: 1};
Object.keys(obj).reduce((a, b) => obj[a] > obj[b] ? a : b);
Breakable Boar
var obj = {a: 1, b: 2, undefined: 1};
Object.keys(obj).reduce((a, b) => obj[a] > obj[b] ? a : b);
Math.max.apply(Math, array.map(function(o) { return o.y; }))
var obj = {a: 1, b: 2, undefined: 1};
Object.keys(obj).reduce((a, b) => obj[a] > obj[b] ? a : b);
Math.max.apply(Math, array.map(function(o) { return o.y; }))