title: how to solve the error "has is not a function"?
body: <p>I want to get elements which contains a checked input. I got all elements using <code>for of</code> and tried this code but it gave the error <code>has is not a function</code>.</p>
  
  <p>What is the problem? Please help me, thanks.</p>
  
  <p>Here is my code:</p>
  
  <pre class="lang-js prettyprint-override"><code>for (const x of allDiv) {
    if (x.has($('input').is(':checked'))){ 
      console.log(x.parentElement.textContent)
    }
  }
  </code></pre>