3 ms·
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
by z3t4 6y ago
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"