code: function (el, className) {
          if (className && isElement(el)) {
              return el.classList.contains(className)
          }
  
          return false
      }
docs: Checks whether an element has a particular class name, or not.