$ gnpm install component-matches-selector
Check if an element matches a given selector.
$ component install component/matches-selector
var matches = require('matches-selector');
matches(el, 'ul li a');
// => true
MIT
Copyright 2013 - present © cnpmjs.org | Home |