If i write a indexOf function for json array always it's returning -1.
parent = [{'a':'hello'},{'a':'world'}];
var child = {'a':'hello'};
var index = parent.indexOf(child);
actually this index should be 0 but it's returning -1;
PLease help me with this issue.