Daftar TypeScript unik
list = list.filter(function (x, i, a) {
return a.indexOf(x) === i;
});
Grieving Gazelle
list = list.filter(function (x, i, a) {
return a.indexOf(x) === i;
});
x --> item in array
i --> index of item
a --> array reference, (in this case "list")