Test a function on all the values in a list?
<p>I have this list in python:</p>

<pre><code>fileTypesToSearch = ['js','css','htm', 'html']
</code></pre>

<p>and I want to do something like (using pseudo-javascript):</p>

<pre><code>if (fileTypesToSearch.some(function(item){ return fileName.endsWith(item); }))
    doStuff();
</code></pre>

<p>What's the neatest way to do this in python? I can't find a <code>some</code> function!</p>
