My application creates a JavaScript object, like the following:
myObj= {1:[Array-Data], 2:[Array-Data]}
But I need this object as an array.
ES8 way made easy:
The official documentation
const obj = { x: 'xxx', y: 1 }; let arr = Object.values(obj); // ['xxx', 1] console.log(arr);