Ed

APIs often return data in inconvenient formats. Let's transform a nested API response into a flat, usable structure.

Your Task:

  • You receive apiResponse with nested user data
  • Create normalizedUsers array with flat objects
  • Each object should have: id, fullName (combined first + last), email, city
  • Handle missing address gracefully (use "Unknown" for city)
TypeScript Solution
Loading...

Submit your code to see test results