TechnologyProfessionTest
Sort by
Newest
Most popular
Last review
Filter by
Published
3590
To review
10
TechnologyProfessionTest
Sort by
Newest
Most popular
Last review
Filter by
Published
3590
To review
10
21 questions
Easy
0 vote121 runs0 comment
Hard
0 vote108 runs0 comment
Hard
0 vote98 runs1 comment
Medium
0 vote95 runs0 comment
Hard
0 vote91 runs0 comment
Medium
0 vote89 runs0 comment
Medium
0 vote89 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 vote88 runs0 comment
Easy
0 vote88 runs0 comment