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 could use [`Object.values`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/values) direct as callback.

```js
var data = [{ id: 1, title: 'title', value: 'test data' }, { id: 2, title: 'title', value: 'test data'}],
    result = data.map(Object.values);

console.log(result);
```

```css
.as-console-wrapper { max-height: 100% !important; top: 0; }
```
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);
```