Awaiting block expression

guest271314 guest271314 at gmail.com
Fri Jun 21 13:41:17 UTC 2019


```await [null].reduce(async user => fetch('/image/'+ (await
user).image).json(), fetch('/user/'+id).json())```

Or use ```Promise.all()```. Or an immediately invoked async arrow function
where a value is ```return```ed from the function.

How do you propose to get the values declared within block scope (a
different scope)?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20190621/6082a65f/attachment.html>


More information about the es-discuss mailing list