I wish Response extended Promise and fetch() returned a Response, so I could write: let data = await fetch(url).json(); instead of: let data = await (await fetch(url)).json();
-
-
async functions never return subclasses so its of limited utility anyway.
-
...and that wasn't decided at the time either.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.