Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

or

  async get () {
    return await (await fetch(`${baseAPI}/heroes`)).json()
  }


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: