jquery: is there a concise way to conditionally use a 2nd selector if a 1st selector comes back empty?
<p>In python, I can do the following, to conditionally use a 2nd list if a 1st one is empty:</p>

<pre><code>&gt;&gt;&gt; x = [ ] or [1, 2]
&gt;&gt;&gt; x
[1, 2]
</code></pre>

<p>In javascript, however,</p>

<pre><code>&gt;&gt;&gt; x = [ ] || [1, 2];
[ ]
</code></pre>

<p>So, if the "or trick" is off the table, I'm wondering whats the most concise way to do something like the following if-javascript-were-python-this-would-work pseudocode:</p>

<pre><code>$elems = $('first-selector') || $('second-selector')
</code></pre>
