export default function lookUpElement(el, predict) {
  while ((_el = el) !== null && _el !== void 0 && _el.nodeName) {
    var _el;
    if (predict(el)) {
      return el;
    }
    el = el.parentElement;
  }
  return null;
}