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