Using monocle mustache for chaining.

Luke Hoban lukeh at
Fri Nov 11 11:27:39 PST 2011

> document.querySelector('#my-element').{
>   style.{
>    'color': 'red',
>    'padding': '5px'
>  }.
>  textContent: 'Hello'
> };

I don't think I've seen this form of the .{ syntax discussed before.   Is an expression being used as the LHS of an object literal property assignment?  What does "foo.{ bar.baz: 12}" mean exactly?


More information about the es-discuss mailing list