SyntaxFix
Write A Post
Hire A Developer
Questions
className is just a string so you can use the regular indexOf function to see if the list of classes contains another string.
className