SyntaxFix
Write A Post
Hire A Developer
Questions
In the interests of helping anyone who lands here but was actually looking for a jQuery free way of doing this:
element.classList.contains('your-class-name')