whole_func_string: function hasClass(element, className) {
    if (!element || !('className' in element)) {
      return false;
    }
  
    return element.className.split(/\s+/).indexOf(className) !== -1;
  }
func_code_string: function hasClass(element, className) {
    if (!element || !('className' in element)) {
      return false;
    }
  
    return element.className.split(/\s+/).indexOf(className) !== -1;
  }
func_documentation_string: Check if element has a class
  @param  {Element}  element
  @param  {String}  className
  @return {boolean}