component-matches-selector

Check if an element matches a given selector

MIT 6 个版本
安装
npm install component-matches-selector
yarn add component-matches-selector
pnpm add component-matches-selector
bun add component-matches-selector
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

版本列表
0.1.7 2019-04-21
0.1.6 2016-04-01
0.1.5 2014-07-27
0.1.4 2014-05-28
0.1.3 2014-05-28
0.1.2 2014-02-10