JSFiddle - React, Tailwind, and code Playground

JavaScript

const action = () => new Promise(res => setTimeout(res, Math.random() * 3000, Math.random()));
const data = new Array(10).fill(0).map(() => ({ action }));

(async () => {
  console.log(await Promise.all(data.map(o => o.action.call(o))))
})();