$(this).hasClass('something') returns a boolean value.
Q: Is there a list of which methods return non jQuery objects?
$(this).hasClass('something') returns a boolean value.
Q: Is there a list of which methods return non jQuery objects?
When you call a method, you call it for a reason.
If you called the method to find something out (eg, hasClass, is, index, filter, etc), it will return that value.
If you called the method to do something (eg, animate, load, append, etc), it will return the original jQuery object.
Note that "property" methods (eg, val, html, css, width, etc) will fall into different categories depending on how you call them.
For more details, check the documentation.