From c7010a6fb2d5f43ad74e63abb08e37dacc1779e7 Mon Sep 17 00:00:00 2001 From: PIYUSH NEGI <43876655+npiyush97@users.noreply.github.com> Date: Mon, 4 Mar 2024 16:56:56 +0530 Subject: [PATCH] Update concat.md deprecated empty --- operators/combination/concat.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/operators/combination/concat.md b/operators/combination/concat.md index 7732b14..4071c1d 100644 --- a/operators/combination/concat.md +++ b/operators/combination/concat.md @@ -54,14 +54,14 @@ concat( ```js // RxJS v6+ -import { concat, empty } from 'rxjs'; +import { concat, EMPTY } from 'rxjs'; import { delay, startWith } from 'rxjs/operators'; // elems const userMessage = document.getElementById('message'); // helper const delayedMessage = (message, delayedTime = 1000) => { - return empty().pipe(startWith(message), delay(delayedTime)); + return EMPTY.pipe(startWith(message), delay(delayedTime)); }; concat(