6 ms·
or async get () { return await (await fetch(`${baseAPI}/heroes`)).json() }
by OutThisLife 8y ago
or
async get () {
return await (await fetch(`${baseAPI}/heroes`)).json()
}
- Boulth 8y agoIf you see `return await` glued together just like that you can drop the `await` as it's effectively a no-op in this case.