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
{{ message }}
Repository navigation
URLSearchParams/Headers constructor also receives iterables including Map #19806
Activity
saschanaz commentedon Nov 7, 2017
I think this will do the work for ES2015+:
But we cannot make this compatible with ES5 as DOM constructor types cannot be extended.
PS: (This is wrong, the sequence type should be processed instead)
mhegazy commentedon Nov 7, 2017
I guess if you want this to work everywhere, you need:
Symbol.Iteratoron them.URLSearchParams constructor: add overload to support iterables