Question: I need a nested array, but I've got a array with nested objects.

What i have:

```
[
    { id: 1, title: 'title', value: 'test data'}
    { id: 2, title: 'title', value: 'test data'}
]

```

But i need:

```
[
    [ 1, 'title', 'test data']
    [ 2, 'title', 'test data']
]

```

Answer: 
You can perform a `.map(x => Object.values(x))` on it.

Live example:

```js
let src = [
    { id: 1, title: 'title', value: 'test data'},
    { id: 2, title: 'title', value: 'test data'}
];

let result = src.map(x => Object.values(x));

console.log(result);
```
using `forEach` loop:

```js
var obj = [
    { id: 1, title: 'title', value: 'test data'},
    { id: 2, title: 'title', value: 'test data'}
];

var arr = [];

obj.forEach(function(o, k) {
 arr.push([o.id, o.title, o.value]);
});

console.log(arr);
```