findFirstOrDefault method

Observable<T> findFirstOrDefault(
  1. Predicate1<T> predicate,
  2. T value
)

Emits the first item of this Observable sequence matching the predicate, or the provided default value otherwise.

Implementation

Observable<T> findFirstOrDefault(Predicate1<T> predicate, T value) =>
    findFirstOrElse(predicate, constantFunction0(value));