I grouped an array using reduce. But I can\'t list array with map function. It says .map is not a function.
const grouped = courses.reduce((objectsByKeyValue, obj