Skip to content

✨ New `combineWithAllErrors` utility function ✨

Compare
Choose a tag to compare
@supermacro supermacro released this 16 Mar 01:32
· 308 commits to master since this release

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 🚀