docs: function hasClass(element, className) {
      var hasClass = true;
      nodesToArray(element).forEach(function (node) {
          if (!node.classList.contains(className)) {
              hasClass = false;
          }
      });
      return hasClass;
  }