How do I refactor this code using a for loop:
const [userA, userB, userC, userD] = await Promise.all([
createTestUser(),
createTestUser(),
createTestUser(),
createTestUser()
]);
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
How do I refactor this code using a for loop:
const [userA, userB, userC, userD] = await Promise.all([
createTestUser(),
createTestUser(),
createTestUser(),
createTestUser()
]);