How can I transform from the old nested object array to the new flater one.
old
new
const old = [{ userId: string, quiz: [{ quizId: