selector-has

1.0.0 • Public • Published

selector-has

build status coverage status coverage status

A helper utility to check the presence of a class in a CSS selector

usage

var has = require('selector-has');
 
has('.foo > .bar', 'foo');
// => true
 
has('.foobar', 'foo');
// => false
 

Readme

Keywords

Package Sidebar

Install

npm i selector-has

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • rtsao