Setting up (non-index) properties of arrays

Allen Wirfs-Brock allen at wirfs-brock.com
Mon Aug 6 15:54:19 PDT 2012


On Aug 4, 2012, at 12:06 AM, Axel Rauschmayer wrote:

> ...
> How about the following abbreviation?
> 
>     const callSiteId1234 = ['lit1\n', ' lit2 ', '', raw: ['lit1\\n', ' lit2 ', '']];

Or, using := 

  const callSiteId1234 = ['lit1\n', ' lit2 '] := {raw: ['lit1\\n', ' lit2 ', ''};

(ignoring all the other issues about why this isn't a great example)


Allen


More information about the es-discuss mailing list