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: 
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);
```
you could try like this using [`Array#map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map?v=example) and [**`object.values()`**](https://www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&cad=rja&uact=8&ved=0ahUKEwiFxY6wnLXTAhXDQo8KHWHGAokQFgglMAE&url=https%3A%2F%2Fdeveloper.mozilla.org%2Fen%2Fdocs%2FWeb%2FJavaScript%2FReference%2FGlobal_objects%2FObject%2Fvalues&usg=AFQjCNE5UlL1cEh99fUgeunohGICKbz8Ew&sig2=YPd33EV2SMSLGFoPjtwUng).and your code have some `syntax error` missing `'`and `,`

```js
var a = [{  id: 1,  title: 'title',  value: 'test data',}, {  id: 2,  title: 'title',  value: 'testdata',}];
var n = a.map(a=>Object.values(a))
console.log(n)
```