DEV Community

Discussion on: Async Iteration in Nodejs

Collapse
 
mrm8488 profile image
Manuel Romero
if(error) return callback(error)

If there is no error:

return callback(null, userInfoArr)

When working with callbacks is important error first management