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
| License |
License |
|---|---|
| GroupId | GroupIdorg.webjars.npm |
| ArtifactId | ArtifactIdcomponent-matches-selector |
| Last Version | Last Version0.1.6 |
| Release Date | Release Date |
| Type | Typejar |
| Description |
Descriptioncomponent-matches-selector
WebJar for component-matches-selector
|
| Project URL |
Project URL |
| Source Code Management |
Source Code Management |
| Filename | Size |
|---|---|
| component-matches-selector-0.1.6.pom | |
| component-matches-selector-0.1.6.jar | 27 KB |
| component-matches-selector-0.1.6-sources.jar | 22 bytes |
| component-matches-selector-0.1.6-javadoc.jar | 22 bytes |
| Browse |
<!-- https://jarcasting.com/artifacts/org.webjars.npm/component-matches-selector/ -->
<dependency>
<groupId>org.webjars.npm</groupId>
<artifactId>component-matches-selector</artifactId>
<version>0.1.6</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/component-matches-selector/
implementation 'org.webjars.npm:component-matches-selector:0.1.6'
// https://jarcasting.com/artifacts/org.webjars.npm/component-matches-selector/
implementation ("org.webjars.npm:component-matches-selector:0.1.6")
'org.webjars.npm:component-matches-selector:jar:0.1.6'
<dependency org="org.webjars.npm" name="component-matches-selector" rev="0.1.6">
<artifact name="component-matches-selector" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='component-matches-selector', version='0.1.6')
)
libraryDependencies += "org.webjars.npm" % "component-matches-selector" % "0.1.6"
[org.webjars.npm/component-matches-selector "0.1.6"]
| Group / Artifact | Type | Version |
|---|---|---|
| org.webjars.npm : component-query | jar | [0,) |
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