passing blocks around in javascript without lengthy function syntax
<p>In my testing code, I'm getting a lot of things that look like this:</p>

<pre><code>test.truth(function(){return myTest.isDef('')});
</code></pre>

<p>Where a majority of the line there is just the function boilerplate. Is there a way to reduce that, so that I can have a syntax more like:</p>

<pre><code>test.truth { myTest.isDef('') }
</code></pre>

<p>as one would do in Scala?</p>

<p>Of course, ideally this is highly browser compatible.</p>
