This would be useful actually. I wrote "if !hasClass addClass, else removeClass" countless times until I figured, hey, maybe jQuery has a toggleClass function, I should look it up. These situations could be avoided if a "related functions" section was there.