Array.prototype.uniq = function () {
let arr = this;
let map = new Map();
let res = [];
for(let i=0; i<arr.length; i++) {
if(!map.has(arr[i])) {
map.set(arr[i]);
res.push(arr[i]);
}
return res;