title: Get index of searchresult in array
body: <p>I have the following code:   </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var member_data_list = [
    ["adrian", "test", Number(9)],
    ["supler", "test", Number(2.3)],
    ["franz", "test", Number(2.5)],
    ["drucker", "test", Number(9.6)],
  ];
  
  if (exists(member_data_list, "franz")) {
       //HERE I NEED TO GET THE INDEX OF MEMBER_DATA_LIST[?]
       //EXAMPLE: if (exists(member_data_list, "franz")) =&gt; RESULT =&gt; 2 (MEMBER_DATA_LIST[2])
       console.log("NAME IS IN ARRAY AT INDEX " + "?");
  }
          
  function exists(arr, search) {
     return arr.some(row =&gt; row.includes(search));
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p>How to get the index of the name in this array?  </p>