DEV Community

[Comment from a deleted post]
Collapse
 
latsuj profile image
Latsuj

Explain why using array.map(nameOfFunction) is a bad practice.

I'm ready to hear anything if it's logic.

Collapse
 
devdrake0 profile image
Si

I've not said using array.map(nameOfFunction) is bad practice, I said using console.log in that way is.

Your comment used array.map(console.log) which is just wrong.

 
latsuj profile image
Latsuj

Haaa ok,
I just took the same examples as the article. But i do agree that console.log is bad practice.