Nurturing Palpable Magnificence
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    dom-matchesselectorpublic

    dom-matchesselector

    Test if an element matches a given selector.

    Installation

    Browserify recommended.

    $ npm install dom-matchesselector
    

    In the codes:

    var matches = require('om-matchesselector');
    

    API

    matches(selector, element)

    Returns true if element matches selector.

    Note that selector is the first argument; this enables derivation of a partially-applied function for testing multiple elements against the same selector via suitable library.

    install

    npm i dom-matchesselector

    Downloadsweekly downloads

    56

    version

    1.0.0

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar