Interview Practice

Filter Active Users

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.
index.ts
Loading...

Output

Run tests to see compile and test output.

Help