Async oczekują pchania JavaScript
const formatData= async () => {
const users = ["rocktimsaikia", "aholachek", "benawad"];
const result = await users.map(async (user) => ({
name: user,
followers: await getFollowers(user)
}));
return result;
};
Dead Deer