Proposal: Map#assign

Peter Jaszkowiak p.jaszkow at gmail.com
Thu Jan 18 19:25:42 UTC 2018


Isn't there a proposal for `Map#setAll`? That would fulfill the other use
case.

On Jan 18, 2018 12:24, "Oriol _" <oriol-bugzilla at hotmail.com> wrote:

> > I believe there's a very simple way to do this today: new Map([...mapA,
> ...mapB, ...mapC]).
>
> But this only works if you want to create a new map, of course. Can't be
> used to assign to an existing map.
>
> - Oriol
>
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20180118/600ce1aa/attachment-0001.html>


More information about the es-discuss mailing list