{
"id": "9929420730013519417213389",
"arr": [
{
"id": "9929420730013519417213389",
"arr": [
{
"id": "9929420730013519417213389"
}
]
}
]
}
]
}
Please format the code you posted, by wrapping it in triple backticks. -> `
yeah, can do, of course
Recursion
while (obj.arr) { for (let i = 0; i < obj.arr.length; i++) { console.log(obj.arr[i].id); } }
@MKRhere challenge: show that loops are better with this example
Обсуждают сегодня