matches-selector-2

Check if an element matches a given selector

npm install matches-selector-2
4 downloads in the last week
33 downloads in the last month

matches-selector

Check if an element matches a given selector.

Installation

$ component install component/matches-selector

Example

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

License

MIT

npm loves you