✨ New `combineWithAllErrors` utility function ✨
neverthrow
now exposes a combineWithAllErrors
function that is the "lazy" (for lack of a better word) equivalent of combine
.
This means that rather than short-circuiting upon finding the first Err
value, combineWithAllErrors
will continue consuming the Result
/ ResultAsync
list until the end and return a list containing all the Err
values that it found.
Thanks to @tobloef for the contribution 🚀