The jQuery toggleClass() method is used to toggle between adding and removing one or more classes from the selected elements. className: A string representing one or more class names to be toggled.
.toggleClass( [boolean] ) is inaccurately documented, (probably) not working correctly, easy to manually implement by library consumers, and I can't even come up with a reasonable use case calling for ...