matches-selector Check if an element matches a given selector. Installation $ npm install matches-dom-selector Example var matches = require('matches-selector'); matches(el, 'ul li a'); // => true License MIT