score:0

let allValues=[]
let the_json_object={
    "randomNum1": [
        1,
        2,
        3,
        4
    ],
    "randomNum2": [
        5,
        6,
        7,
        8
    ]
}
const keys = Object.keys(the_json_object);
const values = Object.values(the_json_object);
let Key_len = keys.length;
for(i=0;i<Key_len;i++){
      let len = values[i].length;
      for(j=0;j<len;j++)
        { 
            if(values[i][j])
               {
                  allValues.push(values[i][j])
                }
         }
 }
//allValues contains all the values from all arrays.

Related Query

More Query from same tag