group
The group() function runs several Either values (or functions returning an Either) and returns the first Left encountered. If all are Right, it aggregates their values into a typed object.
Interactive example
Parameters
group: Object where each property is anEitheror a function returning anEither.
Return value
Rightwith an object gathering all values when they are allRight.- Otherwise the first
Leftthat fails in the order of declaration of the group.
See also
asyncGroup- Async version accepting promises orFuturerightPipe- Synchronous pipeline onRightrightAsyncPipe- Async pipeline onRight
