toggleClass
The toggleClass method toggles a class on each element in the collection, adding it if it is not present and removing it if it is present.
// Toggle a class on the elements
toggleClass: function(className) {
this.elements.forEach(function(element) {
element.classList.toggle(className);
});
return this;
}