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

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i matches-selector-2

    Weekly Downloads

    338

    Version

    0.1.0

    License

    none

    Last publish

    Collaborators

    • tjholowaychuk