Sorry if my response came off that way. We have lots of beginners that might copy your example and not know why it's not working, that was why I pointed out the syntax error(It was unnecessary).
I didn't steal my post from that guy.
I got my handle function solution from a youtuber, which I linked to his article at the end of my post. I also linked an npm package "await-to" that did similar implementation.
If you want to accuse me of stealing, you should at least be correct with the origin of my solution.
Original source of my solution
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.