Re: Suggestion: Destructuring object initializer.

2018-02-14 Thread T.J. Crowder
On Wed, Feb 14, 2018 at 6:25 AM, Bob Myers wrote: > Actually, I did understand what he said. I didn't respond because > it was obviously wrong. It was obviously right. In [the message that he replied to][1] you said: > I had thought that `{...a, ...b}` was 100% identical in every

Re: Suggestion: Destructuring object initializer.

2018-02-14 Thread T.J. Crowder
On Wed, Feb 14, 2018 at 7:03 AM, Raul-Sebastian Mihăilă < raul.miha...@gmail.com> wrote: > > On Wed, Feb 14, 2018 at 8:25 AM, Bob Myers wrote: >> >> For example, I did a quick test comparing `[1, 2]` and >>`new Array(1, 2)` and found that performance was identical, in >> spite of

Re: Suggestion: Destructuring object initializer.

2018-02-14 Thread Bob Myers
My apologies if I was not clear. What I am asking is just *Please explain the potential for engine optimizations offered by property spread syntax `{...a, ...b}` which is not available or as easy with the alternative `Object.assign({}, a, b)`.* Kindly note that there is no need for purposes of