I have an array and now I want to execute a function on every element in the array.
I'm trying to use map()
function. The question is, my callback function passed to map()
has its own parameters (not element, index, array).
Can I pass parameters to such a callback function? How?