component-matches-selector
Check if an element matches a given selector
Last updated 6 years ago by timaschew .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm 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 (6 years ago)

6 Versions

  • 0.1.7                                ...           6 years ago
  • 0.1.6                                ...           9 years ago
  • 0.1.5                                ...           10 years ago
  • 0.1.4                                ...           11 years ago
  • 0.1.3                                ...           11 years ago
  • 0.1.2                                ...           11 years ago

Copyright 2013 - present © cnpmjs.org | Home |