I have an Array I want to remove duplicate object example bison is coming 2 times.
var beasts = [ {'ant':false}, {'bison':true}, {'camel':true}, {'duck':false}, {'bison':false} ];
This is what I tried
let a = beasts.indexOf(bison);
console.log(a);
But all the time it give -1 that means the object is not there at all
please ignore the values of the object