NeuraQuiz
Categories
Quizzes
Practice
Blog
About
Login
Start Learning
Categories
Quizzes
Practice
Blog
About
Login
Start Learning
TypeScript Benefits Deep Dive Quiz
JavaScript
25:00
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Question 1
of 40
ADVANCED
+1 XP
Previous
Flag
Submit
Next
Navigator
0/40
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Submit Quiz
ADVANCED
1 pts
typescript
📄 Snippet
Loading code snippet...
Complete the TypeScript code snippet to implement a function that filters an array of objects based on a dynamic property and value:
A
return arr.filter(item => item[property] === value);
B
return arr.filter(item => item[property] !== value);
C
return arr.map(item => item[property] === value);
D
return arr.reduce((acc, item) => item[property] === value ? [...acc, item] : acc, []);