Array.prototype.delSameContent=function(){
var temp=this;
for(var i=0;i<temp.length-1;i++)
{
for(var j=i+1;j<temp.length;j++)
{
if(temp[i]==temp[j])
{
temp.splice(j,1);
j--;
}
}
}
return temp;
}
var temp1=["a","b","c","a","b","d","a"];
temp1.delSameContent();
for(var k=0;k<temp1.length;k++)
{console.log(temp1[k]);}