You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the lambda function returns an array, this module doesn't treat it as a promise and will just do cb on the pending promises. I suggest:
if (Array.isArray(v)) {
Promise.all(v).then(function (val) /* etc. */
}
We can also just wrap v in Promise.all regardless since it will work even for non-arrays. It would be slightly less efficient to do this. There is also no guarantee that there is a promise in the array.
The text was updated successfully, but these errors were encountered:
If the lambda function returns an array, this module doesn't treat it as a promise and will just do
cb
on the pending promises. I suggest:We can also just wrap
v
inPromise.all
regardless since it will work even for non-arrays. It would be slightly less efficient to do this. There is also no guarantee that there is a promise in the array.The text was updated successfully, but these errors were encountered: