|
|
|
|
|
by Cpoll
1523 days ago
|
|
> function getData() {
return fetch(…);
} I feel like there are advantages to making it `async function`, even if it's superfluous, because it signals to readers and to static code analysis that the function returns a promise. That's assuming the return type of fetch(...) can't be inferred by static analysis and developer tooling. |
|
That is preposterous.