static matches(element, selector) {
    const selectors = typeof selector === 'string' ? [selector] : selector,
      fn = (
        element.matches ||
        element.matchesSelector ||
        element.msMatchesSelector ||
        element.mozMatchesSelector ||
        element.oMatchesSelector ||
        element.webkitMatchesSelector
      );
    if (fn) {
      let match = false;
      selectors.every(sel => {
        if (fn.call(element, sel)) {
          match = true;
          return false;
        }
        return true;
      });
      return match;
    } else { // may be false e.g. when el is a textNode
      return false;
    }
  }
Checks if the specified DOM element matches the selector
@param  {HTMLElement} element - The DOM element
@param  {string|string[]} selector - The selector or an array with
selectors
@return {boolean}
@access public