Closed wmaurer closed 3 years ago
The Refinement findFirst overload would be useful when dealing with arrays of union types. Right now the workaround is to folllow a findFirst with a filter:
Refinement
findFirst
filter
pipe( ..., O.findFirst(Vehicle.is.Bicycle), O.filter(Vehicle.is.Bicycle), ... )
Thanks @wmaurer, released.
The
Refinement
findFirst
overload would be useful when dealing with arrays of union types. Right now the workaround is to folllow afindFirst
with afilter
: