If I have an array like [{a:'b'},{}] and if I try to find an index of element {}. Then I am unable to get the correct index.
I have tried indexOf,findIndex and lodash's findIndex but all is returning -1 instead of 1 maybe because of reference.
The actual index should be 1 instead of -1.