Array.prototype.distinct = function Distinct(){
var obj = [];
for(var i = 0;i< this.length;i++){
var item = this[i];
if(obj[item] != undefined){
this[i] = this[this.length - 1];
this -- ;
i--;
continue;
}
obj[item] = item;
}
obj = null;
return this;
}