User:Habst/getMultiWinner.js

for (const gen of temp1.genders) { winner = gen.agegroups[0].events.find(evt => ['Decathlon', 'Heptathlon'].includes(evt.title)).rounds[0].heats[0].results[0] console.log(winner.name, winner.country, winner.result, winner.athleteId) gen.agegroups.find(ag => ag.title.includes('Multievents'))?.events.forEach(evt => { const results = evt.rounds[0].heats.flatMap(ht => ht.results.map(res => ({...res, wind: res.wind ?? ht.wind}))) const r = results.find(r => r.athleteId === winner.athleteId)  console.log(evt.title, r.result, r.wind); }); }