title: What is the pure JavaScript equivalent of jQuery's .parents() method?
body: <p>Apologies for this kind of question, but I can't find an answer on <a href="http://youmightnotneedjquery.com/" rel="noreferrer">You Might Not Need jQuery</a> or anywhere else online and I'd really like to know:</p>
  
  <p><strong>What is the pure JavaScript equivalent of jQuery's .parents() method?</strong></p>
  
  <p>For example, it would be great to know how to do this in pure JavaScript:</p>
  
  <pre><code>jQuery(element).parents('.className');
  </code></pre>