How to apply an array of classes to classList.contains?
<p>In my HTML, I have a <code>div</code> like so:</p>

<pre><code>&lt;div class="a b c"&gt;&lt;/div&gt;
</code></pre>

<p>In my JavaScript, I have an array of classes that I'm interested in:</p>

<pre><code>var goodClasses = ['a', 'c'];
</code></pre>

<p>In good browsers, I can use the awesome <a href="http://hacks.mozilla.org/2010/01/classlist-in-firefox-3-6/" rel="nofollow"><code>classList</code></a> feature to test whether or not my <code>div</code> has the appropriate classes:</p>

<pre><code>return div.classList.contains(goodClasses[0], goodClasses[1]);
</code></pre>

<p>This is okay, but what I'd really like to do is something like this (the syntax is silly, but this is the general idea):</p>

<pre><code>return div.classList.contains.apply(div, goodClasses);
</code></pre>

<p>Is there some way to do this? If I have to loop through my array of classes anyway, <code>classList</code> becomes a whole lot less cool.</p>
