It depends. If you want to wait on a list of promises returned by an array of functions, better use await Promise.all(fns.map(fn => fn()), as it will allow you to run them parallel.
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 depends. If you want to wait on a list of promises returned by an array of functions, better use
await Promise.all(fns.map(fn => fn())
, as it will allow you to run them parallel.