async function loadUsers(ids) { const users = []; ids.forEach(async (id) => { const res = await fetch('/api/user/' + id); users.push(await res.json()); }); return users; }