heyh guys, it's a stupid question I know, but I'm kinda confused, probably cause I'm bonking my head around this for way too long. How can I loop over this object? Like, I can get to the first two ids and get the title, but then I wouldn't know how to go deeper.
The number of new nested objects will vary as you can see, and the names are... well, not random but, words that the user will input
(pls ping me)
const data = {
"4214023": {
"title": "Nighthaven Labs"
},
"6869036": {
"title": "Villa",
"Ela": {
"2435782": {
"killsInput": "19",
"deathsInput": "12"
},
"3922306": {
"killsInput": "20",
"deathsInput": "17"
}
},
"Alibi": {
"2850831": {
"killsInput": "20",
"deathsInput": "17"
}
}
}
};