Temukan objek duplikat di array js
let arr = []
arr.push({place:"here",name:"stuff"});
arr.push({place:"there",name:"morestuff"});
arr.push({place:"there",name:"morestuff"});
arr = arr.filter((value, index, self) =>
// return if the index if the matched innerr iteration matches the index of the outer iterator
index === self.findIndex((t) => (
t.place === value.place && t.name === value.name
))
)
eje sunday