whole_func_string: function hasClass(element, value) {
    return element.classList ? element.classList.contains(value) : element.className.indexOf(value) > -1;
  }
func_code_string: function hasClass(element, value) {
    return element.classList ? element.classList.contains(value) : element.className.indexOf(value) > -1;
  }
func_documentation_string: Check if the given element has a special class.
  @param {Element} element - The element to check.
  @param {string} value - The class to search.
  @returns {boolean} Returns `true` if the special class was found.