3 ms·
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 obje
by tracker1 9y ago
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.
- v413 9y agowhy not just use acc[prop] = value ?
- elmigranto 9y agoAssignment does not return `acc`.