You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@tpluscode Is there any proposal for the plain JS Map that would add the functionality? I would like to keep it as close as possible in sync with the standard Map class. If there is nothing coming, I would propose to use a chain of .set(). Otherwise we could add it to our code, so we don't need to rely on the Map implementation.
It looks like Map.prototype.merge would be the correct method in the proposal for new methods for collections. But since there have been no updates for about four years, I will close this issue. Once the TC39 proposal status changes, we can open this issue again.
It would be nice to have shorthand method(s) to add multiple sinks at once.
Accepting another map
Accepting a JS hashmap
And maybe an array to align with Map ctor
The text was updated successfully, but these errors were encountered: