This package has been deprecated

Author message:

no longer utilizing this module

properjs-matchelement

0.3.0 • Public • Published

matchElement

Use native element selector matching. Matches element or can walk the DOM to check ancestor elements.

Installation

npm install properjs-matchelement --save-dev

Usage

var matchElement = require( "properjs-matchelement" );
 
// Test if element matches selector
if ( matchElement( element, selector ) ) {
    // It matches, do stuff with it
}
 
// Test if element or parent/ancestor matches selector
if ( matchElement( element, selector, true ) ) {
    // It matches, do stuff with it
}

Package Sidebar

Install

npm i properjs-matchelement

Weekly Downloads

0

Version

0.3.0

License

none

Last publish

Collaborators

  • kitajchuk