From 5fc0e673fc127a5c88530dfb0ce5498e95b2784c Mon Sep 17 00:00:00 2001 From: PIYUSH NEGI <43876655+npiyush97@users.noreply.github.com> Date: Mon, 4 Mar 2024 16:37:04 +0530 Subject: [PATCH] Update endwith.md minor fix console logging val without passing. --- operators/combination/endwith.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/operators/combination/endwith.md b/operators/combination/endwith.md index 65e9600..17a9990 100644 --- a/operators/combination/endwith.md +++ b/operators/combination/endwith.md @@ -42,7 +42,7 @@ source$ // emit on completion .pipe(endWith('Friend')) // 'Hello', 'Friend', 'Goodbye', 'Friend' - .subscribe(console.log(val)); + .subscribe(val => console.log(val)); ``` ##### Example 2: endWith multiple values @@ -62,7 +62,7 @@ source$ // emit on completion .pipe(endWith('Goodbye', 'Friend')) // 'Hello', 'Friend', 'Goodbye', 'Friend' - .subscribe(console.log(val)); + .subscribe(val => console.log(val)); ``` ##### Example 3: Comparison to [`finalize`](../utility/finalize.md)