title: js find object in nodeList?
body: <p>Fallback is irrelevant. No libraries, please.</p>
  
  <p>We have an dom object reference, we'll call <code>obj</code>. It's actually an event.target.</p>
  
  <p>We have a node list, we'll call <code>nodes</code>, which we've gotten with querySelectorAll and a variable selector.</p>
  
  <p><code>nodes</code> may have 1 or many elements, and each each of those elements may have children.</p>
  
  <p>We need to determine if <code>obj</code> is one of those node elements, or children elements of those node elements. We're looking for "native" browser functionality here, we can totes write our own <code>for</code> loop and accomplish this, we are looking for alternatives.</p>
  
  <p>Something like:</p>
  
  <p><code>nodes.contains(obj)</code> OR <code>nodes.indexof(obj)</code> </p>
  
  <p>Solutions involving other methods of retrieving the node list to match against are acceptable, but I have no idea what those could be. </p>