Map array with empty argument

I want to map array and get indexes in return (currentValue is not needed). I want to avoid using unused arguments, so is there better way to do this:, index) => { // el is not used anywhere
          return (


If your want to use you can use _ as your value, this way you telling other developers that you don’t plan to use that value. like:, index) => { /* your code */ })

Or your can simply use for loop.