README
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
Check if an element matches a given selector
<script type="module">
import componentMatchesSelector from 'https://cdn.skypack.dev/component-matches-selector';
</script>
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