It's important to note that await can also be used on non-promises, in which case it passes the value through.
This means that await can be used to resolve things that may or may not be promises.
Yep! My async/await blog post is a 3 part series. The 3rd part discusses this. You just have to await 😉
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
It's important to note that await can also be used on non-promises, in which case it passes the value through.
This means that await can be used to resolve things that may or may not be promises.
Yep! My async/await blog post is a 3 part series. The 3rd part discusses this. You just have to await 😉