title: Get index of e.target child inside eventlistener
body: <p>How exactly do I get the index of e.target? IndexOf wont work and I dont want to use the Array.prototype property. So what is the best way to get the index of the target element?</p>
  
  <p>Basically element is a container with a bunch of divs. If I hover over a div I want to get its index.</p>
  
  <pre><code>element.addEventListener("mouseover", someEvent, false);
  
  
  function someEvent(e) {
      if (e.target !== e.currentTarget) {
          // get the index of the hovered element here
      }
      e.stopPropagation();
  }
  </code></pre>
  
  <p>I explicitely stated that I dont want to use Array.prototype so the link is not a duplicate.</p>
  
  <p>By the way, here a jsfiddle <a href="https://jsfiddle.net/nbjve593/" rel="nofollow">https://jsfiddle.net/nbjve593/</a></p>