This is a response to a comment on how to use the classList.contains method to check for the existence of multiple classes. Since this isn’t built-in to the classList API directly, I threw this together quickly:

I looked at it, but I couldn’t see any differences. Since I am relying on classList under the covers for my implementation, I’m hoping that any issues would be with classList and not with what I have going haha. Also, that JS formatting with that many spaces is something I haven’t encountered before!