Okay i can't explain what i'm trying to do . but i can explain whit code.
i have this array :
var array = [{name:"John",lastname:"Doe"},{name:"Alex",lastname:"Bill"},{name:"John",lastname:"Doe"}]
the array contains 2 elements duplicated , I want a function that shows me only once an element duplicate
when you apply the function this will be the result of the array
var array = [{name:"John",lastname:"Doe"},{name:"Alex",lastname:"Bill"}]