sindresorhus / p-map

Map over promises concurrently
MIT License
1.27k stars 58 forks source link

Add missing index to mapper function in pMapIterable #71

Closed noamokman closed 5 months ago

noamokman commented 5 months ago

Hey, I noticed pMapIterable has the same typescript Mapper function that accepts an index, but an index is not sent the the mapper function. I hope this code makes sense. I added the relevant tests, Thanks!

sindresorhus commented 5 months ago

Thanks for catching that