Proposal: Map#assign

T.J. Crowder tj.crowder at farsightsoftware.com
Thu Jan 18 18:12:09 UTC 2018


On Thu, Jan 18, 2018 at 6:08 PM, Mike Samuel <mikesamuel at gmail.com> wrote:
>
> What if, instead of a variety of assign methods, we respeced
> Object.assign to do this given a Map as the left-value?

I think even if one posits that that would have been a good idea when
`Object.assign` was defined, the ship has sailed. Code in the wild setting
custom properties on `Map` instances using `Object.assign` would suddenly
break.

-- T.J. Crowder
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20180118/1335a401/attachment.html>


More information about the es-discuss mailing list