From a3d61f70784dffa176017f818295db141e4fbc20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lazar=20Ljubenovi=C4=87?= Date: Tue, 27 Jul 2021 10:10:45 +0200 Subject: [PATCH] docs(operators): clarify that `filter` can emit `undefined` --- src/internal/operators/find.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/internal/operators/find.ts b/src/internal/operators/find.ts index 2b51163a1f..2d186a5bf6 100644 --- a/src/internal/operators/find.ts +++ b/src/internal/operators/find.ts @@ -31,7 +31,8 @@ export function find(predicate: (value: T, index: number, source: Observable< * `find` searches for the first item in the source Observable that matches the * specified condition embodied by the `predicate`, and returns the first * occurrence in the source. Unlike {@link first}, the `predicate` is required - * in `find`, and does not emit an error if a valid value is not found. + * in `find`, and does not emit an error if a valid value is not found + * (emits `undefined` instead). * * ## Example * Find and emit the first click that happens on a DIV element