Open Karibash opened 1 week ago
Latest commit: 595c76aca2b3fde9788057287ce5ab2058d491e9
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
Hi @supermacro ,
First of all, I would like to thank you for creating such a wonderful library. I have been using neverthrow in a production environment for about a year and I am very satisfied with it.
In this PR, I am adding a function that combines multiple Results, passed as an object, into a single Result. This can be very useful for functional programming as shown below:
To do the same thing with the current API, you need to use
map
as shown below. This requires you to remember which data is in which position in the array, which is not very convenient.