function removeClass(element, value) {
  if (!value) {
    return;
  }

  if (isNumber(element.length)) {
    forEach(element, function (elem) {
      removeClass(elem, value);
    });
    return;
  }

  if (element.classList) {
    element.classList.remove(value);
    return;
  }

  if (element.className.indexOf(value) >= 0) {
    element.className = element.className.replace(value, '');
  }
}
function removeClass(element, value) {
  if (!value) {
    return;
  }

  if (isNumber(element.length)) {
    forEach(element, function (elem) {
      removeClass(elem, value);
    });
    return;
  }

  if (element.classList) {
    element.classList.remove(value);
    return;
  }

  if (element.className.indexOf(value) >= 0) {
    element.className = element.className.replace(value, '');
  }
}
function removeClass ( element , value ) { if ( ! value ) { return ; } if ( isNumber ( element . length ) ) { forEach ( element , function ( elem ) { removeClass ( elem , value ) ; } ) ; return ; } if ( element . classList ) { element . classList . remove ( value ) ; return ; } if ( element . className . indexOf ( value ) >= 0 ) { element . className = element . className . replace ( value , '' ) ; } }
Remove classes from the given element.
@param {Element} element - The target element.
@param {string} value - The classes to be removed.
Remove classes from the given element .