Array traversing js

var obj = {
  "10.1.181.128":[
    {"id": "1562", "name": "1"},
    {"id": "1562", "name": "2"}
   ],
  "10.1.181.129":[
    {"id": "562", "name": "3"},
    {"id": "152", "name": "4"}
   ],
  "10.1.181.127":[
    {"id": "67", "name": "5"},
    {"id": "562", "name": "6"}
   ],
}

how to traverse the value of id to form an array
get an array-sharp-sharp-sharp problem description

Mar.16,2022

function getId(obj) {
  return Object.keys(obj)
    .map(v => obj[v])
    .reduce((iter, val) => iter.concat(val), [])
    .map(v => v.id);
}

Object.values(obj)
 .reduce((a, b) => a.concat(b), [])
 .map(item => item.id)

var a = []; 
for(var i in obj){
    a=a.concat(obj[i].map(item => {return item.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-1b3bd58-34691.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-1b3bd58-34691.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?