The contains() method checks if a given class name is present in the element's class list.
Description
public ClassList::contains(string $value): bool
Parameters
value
The class name to check for existence in the list.
Return Value
Returns true if the class name is present in the class list, otherwise returns false.
Exceptions
None