JavaScript object literal syntax
<p>If the syntax for JavaScript object literals is</p>

<pre><code>{ label: value, label: value, ... }
</code></pre>

<p>then why is it that I've seen some people use this in their code?</p>

<pre><code>{window}
</code></pre>

<p>What is its purpose? I've tried that and it evaluates to <code>window</code> as it would without the braces. It doesn't even fit in with the object literal notation. Is it a code block?</p>
