packages/mip/src/util/dom/dom.js
function matches (element, selector) {
  if (!element || element.nodeType !== 1) {
    return false
  }
  return nativeMatches.call(element, selector)
}
function matches (element, selector) {
  if (!element || element.nodeType !== 1) {
    return false
  }
  return nativeMatches.call(element, selector)
}
function matches ( element , selector ) { if ( ! element || element . nodeType !== 1 ) { return false } return nativeMatches . call ( element , selector ) }
Support for matches. Check whether a element matches a selector.

@param {HTMLElement} element target element
@param {string} selector element selector
@return {boolean}
Support for matches . Check whether a element matches a selector .