- find<Item>(predicate: Unary<Item, boolean>): (<Iterable>(iterable: Iterable) => ReducerOutput<Iterable, Maybe<Item>>)
-
Parameters
-
predicate: Unary<Item, boolean>
Returns (<Iterable>(iterable: Iterable) => ReducerOutput<Iterable, Maybe<Item>>)
-
- <Iterable>(iterable: Iterable): ReducerOutput<Iterable, Maybe<Item>>
-
Type Parameters
-
Iterable extends AsynchronousIterable<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
Returns
Curried function with
predicate
set in context.