package
Check if an element matches a given selector
npm install component-matches-selectorGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Estimated unpacked size across 3 packages.
98.3 kB
Includes dependencies.
Check if an element matches a given selector.
$ component install component/matches-selectorvar matches = require('matches-selector');
matches(el, 'ul li a');
// => trueMIT
Registry package owners.