Getting specific objects from a selected list
<p>I think I'll have to hit myself in the head after that.</p>

<p>Let's say I have html like this:</p>

<pre><code>&lt;div class="some-class"&gt;&lt;/div&gt;
&lt;span class="some-class"&gt;&lt;/span&gt;
</code></pre>

<p>Somewhere I select items like this:</p>

<pre><code>var items = $(".some-class");
</code></pre>

<p>And somewhere later I would like to get only the divs from the <code>items</code>. I know I could use:</p>

<pre><code>var divs = $("div.some-class");
</code></pre>

<p>But is there a simple way, without doing more selections or iterating through elements by <code>.each</code>? Something like <code>items.someFunction("div")</code>?</p>
