News for hackers. Stuff that matters.
Re:ECMAScript 2017 Language Specification by tracker1 on Tuesday July 11, 2017 @06:13PM (#14748543)
In those cases, I usually use

    Object.assign(acc, { [prop]:value })
While not sure if `[prop]` is better or worse than not creating a new interstitial object.
Re:ECMAScript 2017 Language Specification by v413 on Wednesday July 12, 2017 @03:23AM (#14750752)
why not just use acc[prop] = value ?
Re:ECMAScript 2017 Language Specification by elmigranto on Wednesday July 12, 2017 @09:33AM (#14752354)
Assignment does not return `acc`.