Proposal: syntactic sugar for extracting fields from objects

Григорий Карелин grundiss at
Mon May 27 13:44:42 UTC 2019

> Is the expected result for ```obj``` to be defined as a variable and
```firstName``` and ```lastName``` to not be defined as variables?

As you mentioned above, we may use default value while destructuring to
achieve the same result, but it looks quite unobvious and creates extra
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list