TechnologyProfessionTest
Sort by
Newest
Most popular
Last review
Filter by
Published
21
To review
0
TechnologyProfessionTest
Sort by
Newest
Most popular
Last review
Filter by
Published
21
To review
0
21 questions
Easy
0 vote123 runs0 comment
Hard
0 vote110 runs0 comment
Hard
0 vote100 runs1 comment
Medium
0 vote97 runs0 comment
Hard
0 vote93 runs0 comment
Medium
0 vote91 runs0 comment
Medium
0 vote91 runs0 comment
How is this way of doing called? ```ts interface UserData { [key: string]: any; } class UserDataService { private userData: BehaviorSubject<UserData> = new BehaviorSubject({}); private userData$: Observable<UserData> = this.userData.asObservable(); public setUserData(userData: UserData) { this.userData.next(userData); } public getUserData(): Observable<UserData> { return this.userData$; } public getUserDataByKey(key: string) { return this.userData$.pipe(map((userData) => userData[key])); } } ```
Amine Bouchamat Sep 5, 2022
Hard
0 vote90 runs0 comment
Easy
0 vote90 runs0 comment