On Thu, Jan 18, 2018 at 5:28 PM, 森建 <[email protected]> wrote: > > This code is redundant. I just want to write > `mapA.assign(mapB, mapC);`.
FWIW, it would be more in keeping with `Object.assign` if it were on `Map` rather than `Map.prototype`. E.g., you'd write the code above like this: ```js Map.assign(mapA, mapB, mapC); ``` or if creating a new map: ```js const newMap = Map.assign(new Map, mapA, mapB, mapC); ``` But then, adding methods to `Map.prototype` isn't as fraught as adding methods to `Object.prototype`... :-) -- T.J. Crowder
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

