Inline...
On Wed, Mar 25, 2015 at 12:25 AM Bob Myers r...@gol.com wrote:
Thanks Rick. Yes, I had been hoping to make the following work:
x = {a: 1};
y = {b: 2};
z = {x.a, b.y}; // {a: 1, b: 2}
This is not destructuring per se.
Of course, and that's not what I was exploring in attempting
Thanks Rick. Yes, I had been hoping to make the following work:
x = {a: 1};
y = {b: 2};
z = {x.a, b.y}; // {a: 1, b: 2}
This is not destructuring per se. It's an extension to object literal
property value shorthand syntax.
The idea was to derive the desired property name `a` from `x.a`.
This
2 matches
Mail list logo