this is my array,
var myArray =[{ a: 'b'}, { b: 'b'}, { c: 'b'},{ g: 'b'}];
But when i used indexOf, its not working,
var myArray =[{ a: 'b'}, { b: 'b'}, { c: 'b'},{ g: 'b'}]
var myObj = { g: 'b'};
var isInArray = myArray.indexOf(myObj);
console.log(isInArray)
Whats the problem ?