This question is asked a lot, but any solution that i've tried didn't work for me. Maybe used it wrong.
I want to filter duplicated object inside an array i've tried it with forEach(), find(), filter(), and checking it based on indexOf() but I coulndt make it work. So I hope someone can help me here with a good explanation how it must be done. I have couple more of the functionality
MOST RECENT CODE
var list = [{
        name: "Lisa",
        profile: "admin"
    }, {
        name: "Eliza",
        profile: "admin"
    }, {
        name: "Lisa",
        profile: "admin"
    }];
function log(a) {
    console.log(a)
}
var arr = list.filter(function(item) {
    return item !== list
})
log(arr)So this must return
[{
        name: "Lisa",
        profile: "admin"
    }, {
        name: "Eliza",
        profile: "admin"
    }];
Because Lisa is a duplicate object.
