Multi-layer array nesting to get the value of the object in the innermost array

how to get the values of objects in an array in the inner layer by nesting a multi-layer array

arr= [{id:11}]

give this to

with recursive exit conditions.
Apr.15,2022

arr=[[[[{id:11}]]]]
while(Array.isArray(arr)) {
    arr = arr[0]
}
console.log(arr.id)
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-1b3746e-e5ce.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-1b3746e-e5ce.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?