Remove duplicates
const applications = [
{
"name": "etherpad",
"state": "running"
},
{
"name": "etherpad",
"state": "initialize"
},
{
"name": "wordpress",
"state": "running"
}
];
const test = applications.filter((app, index, self) => {
return index === self.findIndex(a => (
app.name === a.name
));
});
console.log(test);INFO