matches-dom-selector

Check if an element matches a given selector string

npm install matches-dom-selector
2 downloads in the last week
16 downloads in the last month

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

npm loves you