.hasClass(value) allow several classes in the `value` argument.

<p class="cA cB">
$('p').hasClass('cB cA') === true