Exercise 1. Filter Active Users 2. Total Cart Price 3. Group Orders By Status 4. Merge User Preferences 5. Deduplicate Emails 6. Latest Login By User 7. Summarize Error Codes 8. Chunk Array 9. Title Case Words 10. Word Frequency Map 11. Intersect Arrays 12. Array Difference 13. Rotate Array Right 14. Pair IDs With Values 15. Merge Count Records 16. Group By First Letter 17. Invert Record 18. Build Query String 19. Compact Trimmed Strings 20. Count Letters 21. Toggle Todo 22. Insert Item After Index 23. Derive Visible Todos 24. Update Form Field 25. Move Item In List 26. Compute Submit Button State 27. Apply Server Patch 28. Build Visible Tabs 29. Debugging: Safe Average Score 30. Debugging: Selection After Delete 31. Debugging: Pagination Window 32. Normalize Product API Response 33. Build Search Query String 34. Pick Required Fields 35. Parse CSV Row 36. Batch API Requests 37. Safe JSON Parse 38. Remove Todo 39. Upsert Notification 40. Build Sort Descriptor 41. Calculate Optimistic Count 42. Debugging: Build Breadcrumbs 43. Debugging: Toggle Filter State 44. Merge User Profile Response
Current Exercise Category: typescript
Difficulty: 1
Overall Progress: 1 Exercises per Category: TypeScript: 24 React: 12 Debugging: 5 Integration: 3 # Filter Active Users
Implement `filterActiveUsers` so it returns only users where `isActive` is `true`.
## Requirements
- Do not mutate the input array
- Preserve order
- Return `User[]`
## Interview Communication
Briefly explain why `filter` is preferable to manual push loops for readability in shared codebases.
Run Tests Hint Analyze Next Exercise Reset
index.ts
Output Run tests to see compile and test output.
Help