Array.prototype.unique = function(){
var arr=[],
tem={},
len = this.length;
for(var i=0;i<len;i++){
if(!temp[this[i]]){
temp[this[i]]='temp'
arr.push(this[i])
}
}
return arr
}
Array.prototype.unique = function(){
var arr=[],
tem={},
len = this.length;
for(var i=0;i<len;i++){
if(!temp[this[i]]){
temp[this[i]]='temp'
arr.push(this[i])
}
}
return arr
}