Parameters
-
predicate: Unary<Item, boolean>
Returns (<Iterable>(iterable) => ReducerOutput<Iterable, Maybe<Item>>)
Curried function with predicate
set in context.
-
- <Iterable>(iterable): ReducerOutput<Iterable, Maybe<Item>>
-
Type Parameters
-
Iterable extends IsomorphicIterable<Item>
Returns ReducerOutput<Iterable, Maybe<Item>>
Returns the value of the first item in the iterable or asynchronous iterable where predicate is
true
,undefined
otherwise.Example