Write the collection expression that returns an array of just the uppercase titles from a $posts collection.
An API endpoint needs a simple array of uppercase post titles.
Ready to try it?
Create a free account and try "Transform a Collection With map()" free for 7 days, no card required. Earn 90 XP and track your internship progress.
Already have an account? Sign in