easy-classlist
v0.0.1
Published
Cross-browser element class list manipulation
Downloads
15
Maintainers
Readme
easy-classlist
Cross-browser element class manipulation
Installation
npm install easy-classlist
Example
var classList = require('easy-classlist');
var elem = document.getElementById('elem');
classList(elem).add('bar').remove('bar').toggle('bar');
classList(elem).contains('bar');
License
(MIT License)
Copyright (c) 2016 calledT