Y
Hacker News
new
|
ask
|
show
|
jobs
by
OutThisLife
2973 days ago
or
async get () { return await (await fetch(`${baseAPI}/heroes`)).json() }
1 comments
Boulth
2973 days ago
If you see `return await` glued together just like that you can drop the `await` as it's effectively a no-op in this case.
link