var array = [1,2,3,4,1,3,5,6,7];
array = _.sortBy(array,function(num){return num});
function get_bid_winner(array){
var node = false;
for(var i=0;i<array.length;i++){
if( array[i]==array[i+1] ){
node = true
}else{
node==false?console.log(array[i]):node=false;
}
}
}
get_bid_winner(array);
2
4
5
6
7
计算结果应为:2