I'd would see how something like that can be useful at times when you are applying a class for effect and then taking it away. Personally I use this element prototype...
toggleClass(className) {
if (this.hasClass(className))
return this.removeClass(className);
else
return this.addClass(className);
}
