Proposal: Map#assign

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

On Thu, Jan 18, 2018 at 6:08 PM, Mike Samuel <mikesamuel at> 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

-- T.J. Crowder
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list