Given an element and selector, returns true of the selector matches.
This uses the native Element.matches API when possible.
For example:
matches(document.body, 'body')
var proto = Element.prototype;
var vendor = proto.matchesSelector || proto.webkitMatchesSelector || proto.mozMatchesSelector || proto.msMatchesSelector || proto.oMatchesSelector;
var isDOM = require('is-dom');
function isNotMatchable(value) {
return isDOM(value) === false || value === document;
}
module.exports = function match(el, selector) {