const arr : Array<String> = [
"86ec683d-25a3-4b31-8471-23d24c0a12e8",
"86ec683d-25a3-4b31-8471-23d24c0a12e9",
"86ec683d-25a3-4b31-8471-23d24c0a12e8",
"86ec683d-25a3-4b31-8471-23d24c0a12e9",
"86ec683d-25a3-4b31-8471-23d24c0a12e8",
];
const uniquePlayerIds = arr.filter((value, index, self) => {
console.log("### ========== ###");
console.log("value =>", value);
console.log("index =>", index);
console.log("self =>", self);
console.log("self.indexOf(value) =>", self.indexOf(value));
return self.indexOf(value) === index && value != null;
});
console.log("Hasil Akhir =>",uniquePlayerIds)