0.1.7 • Published 5 years ago

component-matches-selector v0.1.7

Weekly downloads
3,735
License
MIT
Repository
github
Last release
5 years ago

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