cu

classname-utils

addClass removeClass hasClass

Showing:

Popularity

Downloads/wk

5

Maintenance

No Maintenance Data Available

Package

Dependencies

0

Size (min+gzip)

0.3KB

License

ISC

Type Definitions

Tree-Shakeable

No?

Categories

Readme

import { hasClass, addClass, removeClass } from 'classname-utils'

var ele = document.getElementById('myEle')

hasClass(ele, 'my-class') // return Boolean
addClass(ele, 'my-class') // add 'my-class' to ele
removeClass(ele, 'my-class') // remove 'my-class' from ele

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100