Awaiting block expression

guest271314 guest271314 at
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: <>

More information about the es-discuss mailing list