Well, I guess it might work too. I personally like more verbose constructions, with keywords instead of dots, asterisks, etc :)
On Wed, 29 May 2019 at 21:03, Bob Myers <[email protected]> wrote: > On Wed, May 29, 2019 at 10:28 AM Григорий Карелин <[email protected]> > wrote: > >> Hi Cyril, >> With the syntax you propose what would be the way to to this: >> ``` >> const source = {foo: 1, bar: 2}; >> const result = {foo: source.foo, bar: source.bar, buzz: 3} >> ``` >> ? >> > > As already mentioned earlier in this thread: > > ```js > const source = {foo: 1, bar: 2}; > const result = {...source.{foo, bar}, buzz: 3}; > ``` > -- Отправлено с мобильного устройства
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

