arr=["шо","шоп","песе","есец","песец" ,"мозг","ептытьЖ:-upr90/76?=00",4,5,6,7,10,45];
res={};
for(var i=0;i<arr.length;i++)
res[arr[i]]=1;
arr=[];
for(var i in res)
arr.push(i);
console.log(arr.toSource());
"["1", "3", "4", "5", "6", "7", "8", "10", "45"]" Scratchpad/1:8
16:04:34.269 "["4", "5", "6", "7", "10", "45", "\u0448\u043E", "\u0448\u043E\u043F", "\u043F\u0435\u0441\u0435", "\u0435\u0441\u0435\u0446", "\u043F\u0435\u0441\u0435\u0446", "\u043C\u043E\u0437\u0433", "\u0435\u043F\u0442\u044B\u0442\u044C\u0416:-upr90/76?=00"]" Scratchpad/1:8
|