Call foo if true else bar
<p>Just out of curiosity, anything like this possible in JavaScript ?</p>

<pre><code>var c, flag = true;
c = Math.(flag ? min : max)(a, b); // c = flag ? Math.min(a, b) : Math.max(a, b);
</code></pre>
