Array operation two-dimensional array operation

var sava = []
var obj = {arr:[{arr[{arr[],id:4}],id:2},{arr[],id:3}],id:1}

there is an arr array and an id,arr array in the

object obj, and there is a child arr array and an id, in it. I want to put each id no matter how many levels (actually up to three layers)

.

1.
write a function to get it recursively.

2.

  

often look upstairs to answer, the answer is innovative

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eb4128-24ad.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eb4128-24ad.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?