Filter Unique Items in Array
(Last modified: )
const books = [
{ title: "C++", author: "Bjarne" },
{ title: "Java", author: "James" },
{ title: "Python", author: "Guido" },
{ title: "Java", author: "James" },
];
const unique = books.filter((obj, index) => {
return index === books.findIndex(o => obj.title === o.title);
});