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);
```
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; }
```