Add a class to a div where partial match of attribute value doesn't match any values in separate array
<p>Say I have the following array of divs which I've assigned to a var <code>fileTypes</code></p>

<pre><code>&lt;dd data-param-type="facetFilters" data-param-value="document_type:pdf"&gt;PDFs&lt;/dd&gt;
&lt;dd data-param-type="facetFilters" data-param-value="document_type:document"&gt;Documents&lt;/dd&gt;
&lt;dd data-param-type="facetFilters" data-param-value="document_type:spreadsheet"&gt;Spreadsheets&lt;/dd&gt;
&lt;dd data-param-type="facetFilters" data-param-value="document_type:presentation"&gt;Presentations&lt;/dd&gt;
&lt;dd data-param-type="facetFilters" data-param-value="document_type:image"&gt;Images&lt;/dd&gt;
</code></pre>

<p>And I also have the following Object:</p>

<pre><code>{email: 80, pdf: 27}
</code></pre>

<p>What's the best way to loop through the <code>fileTypes</code> divs and add a class of <code>disabled</code> if their <code>data-param-value</code> matches neither <code>email</code> or <code>pdf</code>?</p>

<p>I'm using the following to extract the param-value after the :</p>

<pre><code>var type = $(item).data('param-value');
var regex = /type:(.*)/;
var match = regex.exec(type);
console.log(match[1]);
=&gt; pdf // (document, spreadsheet, etc)
</code></pre>

<p>What I can't quite solve is a clean way to find the divs that don't contain a match. I've taken a crack at <code>_.filter</code> and <code>_.difference</code> in Underscore, but am unable to get it right.</p>