Destructuring an object into a new object (like Underscore pick but ESier)

Kevin Smith zenparsing at gmail.com
Fri Feb 19 18:05:50 UTC 2016


>
> I can create a new object with ALL of these properties using a spread
> operator:
> let newObj = {...obj, quux: 4}
>
Let's not do this.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20160219/b97918db/attachment.html>


More information about the es-discuss mailing list