title: How to find an element by data selector in an array of HTML DOM objects using JavaScript?
body: <p>I've an array of HTML DOM objects:</p>
  
  <pre><code>// Console output
  
  (3) […]
  0: &lt;div data-selector="5"&gt;​
  1: &lt;div data-selector="9"&gt;​
  2: &lt;div data-selector="2"&gt;​
  3: &lt;div data-selector="6"&gt;​
  4: &lt;div data-selector="13"&gt;​
  length: 5
  &lt;prototype&gt;: Array []
  </code></pre>
  
  <p>How can I find (and return) the HTML object having <code>data-selector</code> equal to <code>9</code> (i.e.<code>&lt;div data-selector="9"&gt;​</code>) using JavaScript?</p>