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. Toggle Todo 10. Insert Item After Index 11. Derive Visible Todos 12. Update Form Field 13. Move Item In List 14. Compute Submit Button State 15. Apply Server Patch 16. Build Visible Tabs 17. Debugging: Safe Average Score 18. Debugging: Selection After Delete 19. Debugging: Pagination Window 20. Normalize Product API Response 21. Build Search Query String 22. Pick Required Fields 23. Parse CSV Row 24. Batch API Requests 25. Safe JSON Parse 26. Remove Todo 27. Upsert Notification 28. Build Sort Descriptor 29. Calculate Optimistic Count 30. Debugging: Build Breadcrumbs 31. Debugging: Toggle Filter State 32. Merge User Profile Response
Current Exercise Category: typescript
Difficulty: 1
Overall Progress: 1 Exercises per Category: TypeScript: 12 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