component-matches-selector

Check if an element matches a given selector

matches-selector

Check if an element matches a given selector.

$ component install component/matches-selector
var matches = require('matches-selector');
matches(el, 'ul li a');
// => true 

MIT