function hasClass(element, value) {
  return element.classList ? element.classList.contains(value) : element.className.indexOf(value) > -1;
}
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.