function cssHasClass(el, className) {
  const classNames = split(className);
  for (let i = 0; i < classNames.length; i++) {
    if (el.className.match(new RegExp(`(\\s|^)${classNames[i]}(\\s|$)`))) {
      return true;
    }
  }

  return false;
}
/**
 * Returns a boolean indicating whether the given element has the given class name
 *
 * @param {Element} el        The element
 * @param {String}  className One or more space separated class names
 * @returns {boolean}
 */
Returns a boolean indicating whether the given element has the given class name
@param {Element} el        The element
@param {String}  className One or more space separated class names
@returns {boolean}
Returns a boolean indicating whether the given element has the given class name @param { Element } el The element @param { String } className One or more space separated class names @returns { boolean }
function cssHasClass(el, className) {
  const classNames = split(className);
  for (let i = 0; i < classNames.length; i++) {
    if (el.className.match(new RegExp(`(\\s|^)${classNames[i]}(\\s|$)`))) {
      return true;
    }
  }
  return false;
}
function cssHasClass ( el , className ) { const classNames = split ( className ) ; for ( let i = 0 ; i < classNames . length ; i ++ ) { if ( el . className . match ( new RegExp ( ` \\ ${ classNames [ i ] } \\ ` ) ) ) { return true ; } } return false ; }
Returns a boolean indicating whether the given element has the given class name
 @param {Element} el        The element
 @param {String}  className One or more space separated class names
 @returns {boolean}
Returns a boolean indicating whether the given element has the given class name @param { Element } el The element @param { String } className One or more space separated class names @returns { boolean }