If the syntax for JavaScript object literals is
{ label: value, label: value, ... }
then why is it that I've seen some people use this in their code?
{window}
What is its purpose? I've tried that and it evaluates to window as it would without the braces. It doesn't even fit in with the object literal notation. Is it a code block?
{something}converts it to an object wrapper of that type, which it doesn't. To do that, we must doObject(something).