component-matches-selector

0.1.7 • 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

Readme

Keywords

Package Sidebar

Install

npm i component-matches-selector

Weekly Downloads

35,380

Version

0.1.7

License

MIT

Unpacked Size

101 kB

Total Files

11

Last publish

Collaborators

  • amasad
  • anthonyshort
  • calvinfo
  • clintwood
  • coreh
  • cristiandouce
  • defunctzombie
  • dfcreative
  • dominicbarnes
  • forbeslindesay
  • hughsk
  • ianstormtaylor
  • jonathanong
  • jongleberry
  • juliangruber
  • kelonye
  • mattmueller
  • nami-doc
  • ockham
  • queckezz
  • rauchg
  • retrofox
  • stagas
  • stephenmathieson
  • swatinem
  • thehydroimpulse
  • timaschew
  • timoxley
  • tjholowaychuk
  • tootallnate
  • trevorgerhardt
  • yields