-
Notifications
You must be signed in to change notification settings - Fork 433
Closed
Description
I use your solution code for async-loops but still does not pass. The exercise (run or verify) haaaangs.
code:
function loadUsers(userIds, load, done) {
var completed = 0
var users = []
userIds.forEach(function(id, index) {
load(id, function(user) {
console.log(user) // logs out one or two user objects
users[index] = user
if (++completed === userIds.length) return done(users)
})
})
}
module.exports = loadUsers
not passing for me
Metadata
Metadata
Assignees
Labels
No labels