title: How to find index of empty object in array of object
body: <p>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.</p>
  
  <p>I have tried indexOf,findIndex and lodash's findIndex but all is returning -1 instead of 1 maybe because of reference.</p>
  
  <p>The actual index should be 1 instead of -1.</p>