matches-selector-2

0.1.0 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    405
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    405

Package Sidebar

Install

npm i matches-selector-2

Weekly Downloads

184

Version

0.1.0

License

none

Last publish

Collaborators

  • tjholowaychuk