is there a preferred method of determining whether an element is assigned a class, from a performance standpoint?
I committed a test following a comment and four upvotes to very comment. It turns out that what I had said is the correct answer. Here is the result:
hasClass should be faster if performance at any level is your priority.