component-matches-selector
Check if an element matches a given selector
Last updated 2 years ago by timaschew .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install component-matches-selector 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.1.7                                ...           latest (2 years ago)

6 Versions

  • 0.1.7                                ...           2 years ago
  • 0.1.6                                ...           5 years ago
  • 0.1.5                                ...           6 years ago
  • 0.1.4                                ...           7 years ago
  • 0.1.3                                ...           7 years ago
  • 0.1.2                                ...           7 years ago

Copyright 2014 - 2017 © taobao.org |