🌈 搜索
📅  最后修改于: 2022-03-11 15:02:27.685000             🧑  作者: Mango
var obj = {a: 1, b: 2, undefined: 1}; Object.keys(obj).reduce(function(a, b){ return obj[a] > obj[b] ? a : b });