Function hasClass

Returns true if the element's class list contains the given class.