closest = (el, cls) => {
  const className = cls.replace('.', '')
  while ((el = el.parentElement) && !el.classList.contains(className));
  return el
}
Find the closest parent by class
@param  {Object} el  DOM element
@param  {string} cls class
@return {Object}     DOM Element