var obj = { 1: 3, 2: 2, 3: 4, 4: 1 }; alert(Object.keys(obj).sort(function(a, b) { return obj[a] - obj[b] })[0]);