Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It's not exactly wrong as map does call the function passed to it. Maybe the topic was named such as to get up-votes as many people do not like callbacks (which is only a convention to higher order functions used extensively in Node.js for async, as JavaScript by itself does not have any async functions!)... The proper title would be something like: "Unexpected parameters when using Array.map and new Promise"


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: