@f/add-class
v1.0.0
Published
Add a class to an element
Downloads
5
Readme
add-class
Add a class to an element
Installation
$ npm install @f/add-class
Usage
var addClass = require('@f/add-class')
function show (element) {
addClass('show', element)
}
API
addClass(className, element)
className
- The class you want to addelement
- The element you want to addclassName
to
Returns: Returns element
.
License
MIT