title: JavaScript findIndex not working for first object
body: <pre><code>var data=[{"vpnkey":"CUSTOMER_NAME","validation":"ALPHANUMERIC"},
  {"vpnkey":"VRF","validation":"VRF_CHECK"},
  {"vpnkey":"MOBILE_ADDRESS_SUMMARIZED_RANGE","validation":"IP_MASK"},
  {"vpnkey":"APN_MOBILE_RANGE","validation":"IP_MASK"},
  {"vpnkey":"FIXED_IP_LOOPBACK_TRACK_ID","validation":"NUMERIC"},
  {"vpnkey":"CUSTOMER_BGP_REMOTE_AS","validation":"NUMERIC"},
  {"vpnkey":"testing_purpass1","validation":"IP_ADDRESS"},
  {"vpnkey":"testing_purpass2","validation":"IP_ADDRESS"}]
  </code></pre>
  
  <p>when i search vpnkey With first object "vpnkey value" it is returning -1 but expected result 0</p>
  
  <pre><code>this.vpnKeys["Commonkeys"].findIndex(function(item, i){
     if(item.vpnkey === "CUSTOMER_NAME") return i
  });
  </code></pre>
  
  <p>when i search based on vpnkey other then first object "vpnkey value" it  gives proper index value </p>
  
  <pre><code>this.vpnKeys["Commonkeys"].findIndex(function(item, i){
     if(item.vpnkey === "VRF") return i
  });
  </code></pre>