Apologies for this kind of question, but I can't find an answer on You Might Not Need jQuery or anywhere else online and I'd really like to know:
What is the pure JavaScript equivalent of jQuery's .parents() method?
For example, it would be great to know how to do this in pure JavaScript:
jQuery(element).parents('.className');