bluebird-api icon indicating copy to clipboard operation
bluebird-api copied to clipboard

Update mapSeries.js

Open sempostma opened this issue 8 months ago • 0 comments

Here an array is being created with a set length:

https://github.com/benjamingr/bluebird-api/blob/1f02a97e30037943a2952449615fe6bf7ef28b39/promiseFns/mapSeries.js#L6

The concat function adds an item to array and increments length. Either ret[index] = value should be used or the length of the array should be initialized to 0.

https://github.com/benjamingr/bluebird-api/blob/1f02a97e30037943a2952449615fe6bf7ef28b39/promiseFns/mapSeries.js#L10

sempostma avatar Oct 06 '23 14:10 sempostma